diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-01 15:44:35 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-01 15:44:43 -0700 |
commit | 7f97eac6d26945f97d2a59cbef1834ea2a9a8be2 (patch) | |
tree | 5a9564cdfa7bc94d8a71697514d754e32955ef72 /actionpack/lib/action_dispatch | |
parent | e99e23d11561a992c22b711d966ff9a70db0b804 (diff) | |
download | rails-7f97eac6d26945f97d2a59cbef1834ea2a9a8be2.tar.gz rails-7f97eac6d26945f97d2a59cbef1834ea2a9a8be2.tar.bz2 rails-7f97eac6d26945f97d2a59cbef1834ea2a9a8be2.zip |
never merge url options in to the first data hash
if you want options, don't mix them with the first hash, just pass them
all in with the second hash
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index cfd33d1f31..dd2cbdcddc 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -136,7 +136,7 @@ module ActionDispatch url_options = options.except(:action, :routing_type) unless url_options.empty? - args.last.kind_of?(Hash) ? args.last.merge!(url_options) : args << url_options + args << url_options end args.collect! { |a| convert_to_model(a) } |