class method
self.rewrite_authentication
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v4.1.16 PrivateSignature
self.rewrite_authentication(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 58
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 58
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL