Method: ActionDispatch::HostAuthorization::DefaultResponseApp#call
- Defined in:
- actionpack/lib/action_dispatch/middleware/host_authorization.rb
permalink #call(env) ⇒ Object
[View source]
91 92 93 94 95 96 97 |
# File 'actionpack/lib/action_dispatch/middleware/host_authorization.rb', line 91 def call(env) request = Request.new(env) format = request.xhr? ? "text/plain" : "text/html" log_error(request) response(format, response_body(request)) end |