method

distinct

Importance_0
v4.2.9 - 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 365
      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.