method

location_if_redirected

Importance_0
v7.0.0 - Show latest stable - 0 notes - Class: ActionDispatch::Assertions::ResponseAssertions
location_if_redirected() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide 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
Register or log in to add new notes.