Flowdock
method

normalize_argument_to_redirection

Importance_0
v2.2.1 - Show latest stable - 0 notes - Class: ActionController::Assertions::ResponseAssertions
normalize_argument_to_redirection(fragment) 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_controller/assertions/response_assertions.rb, line 109
        def normalize_argument_to_redirection(fragment)
          after_routing = @controller.url_for(fragment)
          if after_routing =~ %r{^\w+://.*}
            after_routing
          else
            # FIXME - this should probably get removed.
            if after_routing.first != '/'
              after_routing = '/' + after_routing
            end
            @request.protocol + @request.host_with_port + after_routing
          end
        end
Register or log in to add new notes.