Permalink
Browse files

we don't need this arg

  • Loading branch information...
jonleighton committed Jul 20, 2012
1 parent 3803fcc commit ac48b62b27630985baec8ad0aae0d331c854a818
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/collection_association.rb
@@ -285,9 +285,9 @@ def many?
end
end
- def uniq(collection = load_target)
+ def uniq
seen = {}
- collection.find_all do |record|
+ load_target.find_all do |record|
seen[record.id] = true unless seen.key?(record.id)
end
end

0 comments on commit ac48b62

Please sign in to comment.