instance method
call
Ruby on Rails 6.0.6
Since v6.0.6Signature
call(env)
No documentation comment.
Parameters
-
envreq
Source
# File actionpack/lib/action_dispatch/middleware/host_authorization.rb, line 96
def call(env)
return @app.call(env) if @permissions.empty?
request = Request.new(env)
if authorized?(request)
mark_as_authorized(request)
@app.call(env)
else
@response_app.call(env)
end
end
Defined in actionpack/lib/action_dispatch/middleware/host_authorization.rb line 96
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::HostAuthorization