提交 48cce9d3 编写于 作者: A Aaron Patterson

just merge instead of dup and merge

上级 ca9fd76c
......@@ -171,8 +171,7 @@ def initialize(route, options)
def call(t, args)
if args.size == arg_size && !args.last.is_a?(Hash) && optimize_routes_generation?(t)
options = @options.dup
options.merge!(t.url_options)
options = @options.merge t.url_options
options[:path] = optimized_helper(args)
ActionDispatch::Http::URL.url_for(options)
else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册