aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-06-11 15:32:52 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-06-11 15:32:52 -0700
commitdf3c78296a404e83df141dbeead506e4884f2a0f (patch)
treef92b33e8ab601059f4e42e24e35cfd65f4ccb3eb /actionpack
parentba1c685d8cb12a1ac7079c1c629e0a8481c631d1 (diff)
downloadrails-df3c78296a404e83df141dbeead506e4884f2a0f.tar.gz
rails-df3c78296a404e83df141dbeead506e4884f2a0f.tar.bz2
rails-df3c78296a404e83df141dbeead506e4884f2a0f.zip
remove useless to_param call
extract_subdomain always returns a string, and to_param calls to_s on a string
Diffstat (limited to 'actionpack')
-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 6c2489ebb4..75e426d3b0 100644
--- a/actionpack/lib/action_dispatch/http/url.rb
+++ b/actionpack/lib/action_dispatch/http/url.rb
@@ -126,7 +126,7 @@ module ActionDispatch
if subdomain == true || !options.key?(:subdomain)
return _host if options[:domain].nil?
- host << extract_subdomain(_host, tld_length).to_param
+ host << extract_subdomain(_host, tld_length)
elsif subdomain
host << subdomain.to_param
end