提交 1e930e7a 编写于 作者: A Aaron Patterson

we do not need to dup the options hash, it is private and a new object each call

上级 9b15828b
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册