method
new
rails latest stable - Class:
ActionDispatch::Static
new(app, path, index: "index", headers: {})public
No documentation available.
# File actionpack/lib/action_dispatch/middleware/static.rb, line 19
def initialize(app, path, index: "index", headers: {})
@app = app
@file_handler = FileHandler.new(path, index: index, headers: headers)
end