mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #2503 from arunagw/cant_dup_on_nil
We cannot dup on nil.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user