diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-01 16:09:29 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-05-12 15:54:42 -0700 |
commit | de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd (patch) | |
tree | 5d068e9bc847a1487e8bb1fb9cad034dfcfde29f /actionpack/lib | |
parent | b5d25486aa8c227d3eb53d74583032600b07b627 (diff) | |
download | rails-de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd.tar.gz rails-de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd.tar.bz2 rails-de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd.zip |
we always convert this variable to a list, so we can remove the unconversion
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb index ea1601fc5a..c8baf7a324 100644 --- a/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb +++ b/actionpack/lib/action_dispatch/routing/polymorphic_routes.rb @@ -111,7 +111,6 @@ module ActionDispatch if record_or_hash_or_array.first.is_a?(ActionDispatch::Routing::RoutesProxy) recipient = record_or_hash_or_array.shift end - record_or_hash_or_array = record_or_hash_or_array[0] if record_or_hash_or_array.size == 1 end args = Array === record_or_hash_or_array ? |