mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
only add the optiosn if they are not empty
I think this is wrong, but it gets the build passing for now. We should always add options, but we need to make more guarantees about how the underlying url helper is called
This commit is contained in:
parent
b44bfa4c24
commit
280e76e62d
1 changed files with 3 additions and 1 deletions
|
@ -135,7 +135,9 @@ module ActionDispatch
|
|||
named_route = build_named_route_call(record_or_hash_or_array, record, inflection, options)
|
||||
|
||||
url_options = options.except(:action, :routing_type)
|
||||
args << url_options
|
||||
unless url_options.empty?
|
||||
args << url_options
|
||||
end
|
||||
|
||||
args.collect! { |a| convert_to_model(a) }
|
||||
|
||||
|
|
Loading…
Reference in a new issue