Sha256: 07444bf99c309119ddeb1aa457b30a750ec48a4ee7c8f0db878b024dd6708e98

Contents?: true

Size: 326 Bytes

Versions: 66

Compression:

Stored size: 326 Bytes

Contents

module ActiveFedora
  class AssociationRelation < Relation
    def initialize(klass, association)
      super(klass)
      @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

66 entries across 66 versions & 1 rubygems

Version Path
active-fedora-7.0.0.rc3 lib/active_fedora/association_relation.rb
active-fedora-7.0.0.rc2 lib/active_fedora/association_relation.rb
active-fedora-7.0.0.rc1 lib/active_fedora/association_relation.rb
active-fedora-7.0.0.pre3 lib/active_fedora/association_relation.rb
active-fedora-7.0.0.pre2 lib/active_fedora/association_relation.rb
active-fedora-7.0.0.pre1 lib/active_fedora/association_relation.rb