instance method
api_request?
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
api_request?(content_type)
No documentation comment.
Parameters
-
content_typereq
Source
# File actionpack/lib/action_dispatch/middleware/debug_exceptions.rb, line 201
def api_request?(content_type)
@response_format == :api && !content_type.html?
end
Defined in actionpack/lib/action_dispatch/middleware/debug_exceptions.rb line 201
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::DebugExceptions