class method
self.new
Ruby on Rails 4.1.16
Since v3.0.20Signature
self.new(app, path, cache_control=nil)
No documentation comment.
Parameters
-
appreq -
pathreq -
cache_controlopt = nil
Source
# File actionpack/lib/action_dispatch/middleware/static.rb, line 69
def initialize(app, path, cache_control=nil)
@app = app
@file_handler = FileHandler.new(path, cache_control)
end
Defined in actionpack/lib/action_dispatch/middleware/static.rb line 69
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Static