Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

do not allocate strings while creating urls

  • Loading branch information...
commit 6e34d090b2c7b8eb54243feb2b00b08dfc40ffac 1 parent 5c5c1cc
@tenderlove tenderlove authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/metal/url_for.rb
View
2  actionpack/lib/action_controller/metal/url_for.rb
@@ -32,7 +32,7 @@ def url_options
if (same_origin = _routes.equal?(env["action_dispatch.routes".freeze])) ||
(script_name = env["ROUTES_#{_routes.object_id}_SCRIPT_NAME"]) ||
- (original_script_name = env['ORIGINAL_SCRIPT_NAME'])
+ (original_script_name = env['ORIGINAL_SCRIPT_NAME'.freeze])
@_url_options.dup.tap do |options|
if original_script_name
Please sign in to comment.
Something went wrong with that request. Please try again.