Sha256: 02210e542d4e005017807521df57e14a6b2bf9593ee8a3bd2eb191eb03b65869

Contents?: true

Size: 340 Bytes

Versions: 16

Compression:

Stored size: 340 Bytes

Contents

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
activerecord-4.0.5 lib/active_record/association_relation.rb
activerecord-4.1.1 lib/active_record/association_relation.rb
activerecord-4.1.0 lib/active_record/association_relation.rb
activerecord-4.1.0.rc2 lib/active_record/association_relation.rb
activerecord-4.0.4 lib/active_record/association_relation.rb
activerecord-4.0.4.rc1 lib/active_record/association_relation.rb
activerecord-4.1.0.rc1 lib/active_record/association_relation.rb
activerecord-4.0.3 lib/active_record/association_relation.rb
activerecord-4.1.0.beta2 lib/active_record/association_relation.rb
activerecord-4.1.0.beta1 lib/active_record/association_relation.rb
activerecord-4.0.2 lib/active_record/association_relation.rb
activerecord-4.0.1 lib/active_record/association_relation.rb
activerecord-4.0.1.rc4 lib/active_record/association_relation.rb
activerecord-4.0.1.rc3 lib/active_record/association_relation.rb
activerecord-4.0.1.rc2 lib/active_record/association_relation.rb
activerecord-4.0.1.rc1 lib/active_record/association_relation.rb