Skip to content

Commit

Permalink
we do not need to dup the options hash, it is private and a new objec…
Browse files Browse the repository at this point in the history
…t each call
  • Loading branch information
tenderlove committed Jul 16, 2014
1 parent 9b15828 commit 1e930e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_dispatch/routing/route_set.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1e930e7

Please sign in to comment.