Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…version
  • Loading branch information...
commit de1b9f85d8680a25cd8fcb2dbddd24dbf7b048dd 1 parent b5d2548
@tenderlove tenderlove authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  actionpack/lib/action_dispatch/routing/polymorphic_routes.rb
View
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 ?
Please sign in to comment.
Something went wrong with that request. Please try again.