method

rewrite_authentication

rails latest stable - Class: ActionDispatch::Routing::RouteSet

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

rewrite_authentication(options)
private

No documentation available.

# File actionpack/lib/action_dispatch/routing/route_set.rb, line 545
        def rewrite_authentication(options)
          if options[:user] && options[:password]
            "#{Rack::Utils.escape(options.delete(:user))}:#{Rack::Utils.escape(options.delete(:password))}@"
          else
            ""
          end
        end