method
intersection
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Associations::HasManyThroughAssociation
intersection(a, b)private
No documentation available.
# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 177
def intersection(a, b)
distribution = distribution(b)
a.select { |record| mark_occurrence(distribution, record) }
end