Sha256: 1ac980b578891b76db7184b101883cb6d3ef7a3d8aaeb3047bbfcae8a7dfba09

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 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

1 entries across 1 versions & 1 rubygems

Version Path
activefedora-aggregation-0.10.0 lib/active_fedora/filter/reflection.rb