diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index 7afb2838e0..bd3696cda1 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -102,7 +102,7 @@ module ActionDispatch # def polymorphic_url(record_or_hash_or_array, options = {}) if Hash === record_or_hash_or_array - options = record_or_hash_or_array.dup.merge!(options) + options = record_or_hash_or_array.merge(options) record = options.delete :id return polymorphic_url record, options end @@ -123,7 +123,7 @@ module ActionDispatch # <tt>polymorphic_url</tt> with <tt>routing_type: :path</tt>. def polymorphic_path(record_or_hash_or_array, options = {}) if Hash === record_or_hash_or_array - options = record_or_hash_or_array.dup.merge!(options) + options = record_or_hash_or_array.merge(options) record = options.delete :id return polymorphic_path record, options end |