instance method
code_from_name
Ruby on Rails 7.2.3
Since v5.2.8.1 PrivateSignature
code_from_name(name)
No documentation comment.
Parameters
-
namereq
Source
# File actionpack/lib/action_dispatch/testing/assertion_response.rb, line 40
def code_from_name(name)
GENERIC_RESPONSE_CODES[name] || ActionDispatch::Response.rack_status_code(name)
end
Defined in actionpack/lib/action_dispatch/testing/assertion_response.rb line 40
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::AssertionResponse