instance method
name_from_code
Ruby on Rails 5.2.8.1
Since v5.2.8.1 PrivateSignature
name_from_code(code)
No documentation comment.
Parameters
-
codereq
Source
# File actionpack/lib/action_dispatch/testing/assertion_response.rb, line 43
def name_from_code(code)
GENERIC_RESPONSE_CODES.invert[code] || Rack::Utils::HTTP_STATUS_CODES[code]
end
Defined in actionpack/lib/action_dispatch/testing/assertion_response.rb line 43
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::AssertionResponse