instance method
code_from_name
Ruby on Rails 7.0.10
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 38
def code_from_name(name)
GENERIC_RESPONSE_CODES[name] || Rack::Utils::SYMBOL_TO_STATUS_CODE[name]
end
Defined in actionpack/lib/action_dispatch/testing/assertion_response.rb line 38
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::AssertionResponse