aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/url.rb
diff options
context:
space:
mode:
authorJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-04 21:53:10 +0200
committerJosh Kalderimis <josh.kalderimis@gmail.com>2011-05-04 21:53:10 +0200
commit8e69f1eb20a87e820244ecc880f85026b5e45d42 (patch)
tree0e4cc71f34e104e4aef95371a0ed36482edc7bbc /actionpack/lib/action_dispatch/http/url.rb
parent6372d23616b13c62c7a12efa89f958b334dd66ae (diff)
downloadrails-8e69f1eb20a87e820244ecc880f85026b5e45d42.tar.gz
rails-8e69f1eb20a87e820244ecc880f85026b5e45d42.tar.bz2
rails-8e69f1eb20a87e820244ecc880f85026b5e45d42.zip
minor correction to the ActionDispatch::Http::URL subdomain docs
Diffstat (limited to 'actionpack/lib/action_dispatch/http/url.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/url.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb
index d9c07d6ca3..8487b0fc8c 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -162,7 +162,7 @@ module ActionDispatch
# 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(".")