aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-07-16 16:31:07 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-07-16 16:31:07 -0700
commit1e930e7a488c91beaebfa9682394877e9ad70183 (patch)
tree349d56c47f8d3bb0381aaa9a6dc7aff7a18bc59a /actionpack
parent9b15828b5c347395b42066a588c88e5eb4e72279 (diff)
downloadrails-1e930e7a488c91beaebfa9682394877e9ad70183.tar.gz
rails-1e930e7a488c91beaebfa9682394877e9ad70183.tar.bz2
rails-1e930e7a488c91beaebfa9682394877e9ad70183.zip
we do not need to dup the options hash, it is private and a new object each call
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_dispatch/routing/route_set.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/route_set.rb b/actionpack/lib/action_dispatch/routing/route_set.rb
index d24751d28d..4fb32a76eb 100644
--- a/actionpack/lib/action_dispatch/routing/route_set.rb
+++ b/actionpack/lib/action_dispatch/routing/route_set.rb
@@ -249,8 +249,8 @@ module ActionDispatch
#
# foo_url(bar, baz, bang, sort_by: 'baz')
#
- def define_url_helper(route, name, options)
- helper = UrlHelper.create(route, options.dup)
+ def define_url_helper(route, name, opts)
+ helper = UrlHelper.create(route, opts)
@module.remove_possible_method name
@module.module_eval do