From df3c78296a404e83df141dbeead506e4884f2a0f Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 11 Jun 2014 15:32:52 -0700 Subject: remove useless to_param call extract_subdomain always returns a string, and to_param calls to_s on a string --- actionpack/lib/action_dispatch/http/url.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3