instance method
location_if_redirected
Ruby on Rails 7.0.10
Since v5.2.8.1 PrivateSignature
location_if_redirected()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/testing/assertions/response.rb, line 89
def location_if_redirected
return "" unless @response.redirection? && @response.location.present?
location = normalize_argument_to_redirection(@response.location)
" redirect to <#{location}>"
end
Defined in actionpack/lib/action_dispatch/testing/assertions/response.rb line 89
· View on GitHub
· Improve this page
· Find usages on GitHub