mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #2503 from arunagw/cant_dup_on_nil
We cannot dup on nil.
This commit is contained in:
commit
c420ebf74a
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ module ActionDispatch
|
|||
when String
|
||||
options
|
||||
when nil, Hash
|
||||
_routes.url_for((options.dup || {}).reverse_merge!(url_options).symbolize_keys)
|
||||
_routes.url_for((options || {}).reverse_merge(url_options).symbolize_keys)
|
||||
else
|
||||
polymorphic_url(options)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue