Skip to content
Browse files

Fixed ' and ' should be ' && '

  • Loading branch information...
1 parent 92955d0 commit 0fdcd5449ed028cad78186e148ba38bfc84e7d27 @bfolkens bfolkens committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/http/url.rb
View
2 actionpack/lib/action_dispatch/http/url.rb
@@ -64,7 +64,7 @@ def rewrite_authentication(options)
end
def host_or_subdomain_and_domain(options)
- return options[:host] unless (options[:subdomain] || options[:domain]) and named_host?(options[:host])
+ return options[:host] unless (options[:subdomain] || options[:domain]) && named_host?(options[:host])
tld_length = options[:tld_length] || @@tld_length

0 comments on commit 0fdcd54

Please sign in to comment.
Something went wrong with that request. Please try again.