Flowdock
method

distinct

Importance_0
Ruby on Rails latest stable (v4.2.1) - 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 354
      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.