Flowdock
method

distinct

Importance_0
v4.1.8 - Show latest stable - 0 notes - Class: CollectionAssociation
distinct() 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 345
      def distinct
        seen = {}
        load_target.find_all do |record|
          seen[record.id] = true unless seen.key?(record.id)
        end
      end
Register or log in to add new notes.