Sha256: 7da1ac46d87f51a4850906c4704d5f7f74f7dddb85537a114015816e1348c1bd

Contents?: true

Size: 411 Bytes

Versions: 10

Compression:

Stored size: 411 Bytes

Contents

module ActiveFedora::Filter
  class Reflection < ActiveFedora::Reflection::AssociationReflection
    def association_class
      Association
    end

    # delegates to extending_from
    def klass
      extending_from.klass
    end

    def extending_from
      @extending_from ||= active_fedora.reflect_on_association(options.fetch(:extending_from))
    end

    def collection?
      true
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
activefedora-aggregation-0.9.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.8.1 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.8.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.7.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.6.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.5.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.4.2 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.4.1 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.4.0 lib/active_fedora/filter/reflection.rb
activefedora-aggregation-0.3.0 lib/active_fedora/filter/reflection.rb