class method
self.new
Ruby on Rails 6.0.6
Since v6.0.6Signature
self.new(app, hosts, response_app = nil)
No documentation comment.
Parameters
-
appreq -
hostsreq -
response_appopt = nil
Source
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 90
def initialize(app, hosts, response_app = nil)
@app = app
@permissions = Permissions.new(hosts)
@response_app = response_app || DEFAULT_RESPONSE_APP
end
Defined in actionpack/lib/action_dispatch/middleware/host_authorization.rb line 90
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::HostAuthorization