Flowdock
method

uniq

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: CollectionAssociation
uniq(collection = load_target) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/associations/collection_association.rb, line 285
      def uniq(collection = load_target)
        seen = {}
        collection.find_all do |record|
          seen[record.id] = true unless seen.key?(record.id)
        end
      end
Register or log in to add new notes.