From de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 1 May 2014 16:09:29 -0700 Subject: we always convert this variable to a list, so we can remove the unconversion --- actionpack/lib/action_dispatch/routing/polymorphic_routes.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'actionpack/lib/action_dispatch') 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 ? -- cgit v1.2.3