Skip to content
Browse files

we don't need this arg

  • Loading branch information...
1 parent 3803fcc commit ac48b62b27630985baec8ad0aae0d331c854a818 @jonleighton jonleighton committed Jul 20, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/collection_association.rb
View
4 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.
Something went wrong with that request. Please try again.