Permalink
Browse files

we always convert this variable to a list, so we can remove the uncon…

…version
  • Loading branch information...
1 parent b5d2548 commit de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd @tenderlove tenderlove committed May 1, 2014
Showing with 0 additions and 1 deletion.
  1. +0 −1 actionpack/lib/action_dispatch/routing/polymorphic_routes.rb
@@ -111,7 +111,6 @@ def polymorphic_url(record_or_hash_or_array, options = {})
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 ?

0 comments on commit de1b9f8

Please sign in to comment.