Skip to content

Commit

Permalink
we always convert this variable to a list, so we can remove the uncon…
Browse files Browse the repository at this point in the history
…version
  • Loading branch information
tenderlove committed May 12, 2014
1 parent b5d2548 commit de1b9f8
Showing 1 changed file with 0 additions and 1 deletion.
Expand Up @@ -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 ?
Expand Down

0 comments on commit de1b9f8

Please sign in to comment.