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-9.0.8 lib/active_fedora/association_relation.rb
active-fedora-8.7.0 lib/active_fedora/association_relation.rb
active-fedora-8.6.0 lib/active_fedora/association_relation.rb
active-fedora-8.5.0 lib/active_fedora/association_relation.rb
active-fedora-8.4.2 lib/active_fedora/association_relation.rb
active-fedora-8.4.1 lib/active_fedora/association_relation.rb
active-fedora-7.3.1 lib/active_fedora/association_relation.rb
active-fedora-7.3.0 lib/active_fedora/association_relation.rb
active-fedora-8.4.0 lib/active_fedora/association_relation.rb
active-fedora-8.3.0 lib/active_fedora/association_relation.rb
active-fedora-8.2.2 lib/active_fedora/association_relation.rb
active-fedora-8.2.1 lib/active_fedora/association_relation.rb
active-fedora-8.2.0 lib/active_fedora/association_relation.rb
active-fedora-7.2.0 lib/active_fedora/association_relation.rb
active-fedora-9.5.0 lib/active_fedora/association_relation.rb
active-fedora-9.4.3 lib/active_fedora/association_relation.rb
active-fedora-9.4.2 lib/active_fedora/association_relation.rb
active-fedora-9.4.1 lib/active_fedora/association_relation.rb
active-fedora-9.4.0 lib/active_fedora/association_relation.rb
active-fedora-9.3.0 lib/active_fedora/association_relation.rb