Skip to content

Commit df3c782

Browse files
committed
remove useless to_param call
extract_subdomain always returns a string, and to_param calls to_s on a string
1 parent ba1c685 commit df3c782

File tree

1 file changed

+1
-1
lines changed
  • actionpack/lib/action_dispatch/http

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/http/url.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def normalize_host(_host, options)
126126
if subdomain == true || !options.key?(:subdomain)
127127
return _host if options[:domain].nil?
128128

129-
host << extract_subdomain(_host, tld_length).to_param
129+
host << extract_subdomain(_host, tld_length)
130130
elsif subdomain
131131
host << subdomain.to_param
132132
end

0 commit comments

Comments
 (0)