class method
self.same_host?
Ruby on Rails 4.1.16
Since v4.0.13 Last seen in v4.1.16 PrivateAvailable in: v4.0.13 v4.1.16
Signature
self.same_host?(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionpack/lib/action_dispatch/http/url.rb, line 95
def same_host?(options)
(options[:subdomain] == true || !options.key?(:subdomain)) && options[:domain].nil?
end
Defined in actionpack/lib/action_dispatch/http/url.rb line 95
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::URL