Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor correction to the ActionDispatch::Http::URL subdomain docs

  • Loading branch information...
commit 8e69f1eb20a87e820244ecc880f85026b5e45d42 1 parent 6372d23
@joshk joshk authored
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
@@ -162,7 +162,7 @@ def subdomains(tld_length = @@tld_length)
# Returns all the \subdomains as a string, so <tt>"dev.www"</tt> would be
# returned for "dev.www.rubyonrails.org". You can specify a different <tt>tld_length</tt>,
- # such as 2 to catch <tt>["www"]</tt> instead of <tt>"www.rubyonrails"</tt>
+ # such as 2 to catch <tt>"www"</tt> instead of <tt>"www.rubyonrails"</tt>
# in "www.rubyonrails.co.uk".
def subdomain(tld_length = @@tld_length)
subdomains(tld_length).join(".")
Please sign in to comment.
Something went wrong with that request. Please try again.