Sha256: 0105cffb30c0f5bd6d2bb33c569ef4377a57d4cf4e2a9117669ceef43280aba8
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
module ActiveFedora::Aggregation class ThroughAssociation def initialize(owner, reflection) @owner, @reflection = owner, reflection end # has_one :aggregation # has_many :generic_files, through: :aggregation def reader @file_association ||= Association.new(@owner, @reflection) end def writer(vals) reader.target = vals end def ids_writer(vals) reader.target_ids = vals end def ids_reader reader.target_ids end end end
Version data entries
3 entries across 3 versions & 1 rubygems