method

through_records_for

through_records_for(record)
private

No documentation available.

# File activerecord/lib/active_record/associations/has_many_through_association.rb, line 189
        def through_records_for(record)
          attributes = construct_join_attributes(record)
          candidates = Array.wrap(through_association.target)
          candidates.find_all do |c|
            attributes.all? do |key, value|
              c.public_send(key) == value
            end
          end
        end