class method self.rewrite_authentication

Ruby on Rails 3.2.22.5

Since v3.1.12 Last seen in v4.1.16 Private

Available in: v3.1.12 v3.2.22.5 v4.0.13 v4.1.16

Signature

self.rewrite_authentication(options)

No documentation comment.

Parameters

options req
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 62
        def rewrite_authentication(options)
          if options[:user] && options[:password]
            "#{Rack::Utils.escape(options[:user])}:#{Rack::Utils.escape(options[:password])}@"
          else
            ""
          end
        end

Defined in actionpack/lib/action_dispatch/http/url.rb line 62 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Http::URL

Type at least 2 characters to search.

↑↓ navigate · open · esc close