Permalink
Browse files

we do not need to dup the options hash, it is private and a new objec…

…t each call
  • Loading branch information...
tenderlove committed Jul 16, 2014
1 parent 9b15828 commit 1e930e7a488c91beaebfa9682394877e9ad70183
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_dispatch/routing/route_set.rb
@@ -249,8 +249,8 @@ def handle_positional_args(controller_options, inner_options, args, result, path
#
# 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

0 comments on commit 1e930e7

Please sign in to comment.