lib/active_fedora/aggregation/builder.rb in activefedora-aggregation-0.1.0 vs lib/active_fedora/aggregation/builder.rb in activefedora-aggregation-0.2.0

- old
+ new

@@ -3,9 +3,13 @@ self.macro = :aggregation def build reflection = super configure_dependency + model.has_and_belongs_to_many :proxies, predicate: ::RDF::Vocab::ORE.aggregates, class_name: 'ActiveFedora::Aggregation::Proxy', inverse_of: :containers + model.belongs_to :head, predicate: ::RDF::Vocab::IANA['first'], class_name: 'ActiveFedora::Aggregation::Proxy' + model.belongs_to :tail, predicate: ::RDF::Vocab::IANA.last, class_name: 'ActiveFedora::Aggregation::Proxy' + reflection end def self.define_readers(mixin, name) super