blob: 20516bba0cca1000aaaa8399616159b50c3a5852 (
plain) (
tree)
|
|
module ActiveRecord
class AssociationRelation < Relation
def initialize(klass, table, association)
super(klass, table)
@association = association
end
def proxy_association
@association
end
private
def exec_queries
super.each { |r| @association.set_inverse_instance r }
end
end
end
|