Module: ActiveFedora::Aggregation::BaseExtension::ClassMethods
- Defined in:
- lib/active_fedora/aggregation/base_extension.rb
Instance Method Summary collapse
-
#filters_association(extending_from, options = {}) ⇒ Object
Create an association filter on the class.
-
#ordered_aggregation(name, options = {}) ⇒ Object
Convenience method for building an ordered aggregation.
-
#orders(name, options = {}) ⇒ Object
Allows ordering of an association.
Instance Method Details
#filters_association(extending_from, options = {}) ⇒ Object
Create an association filter on the class
50 51 52 53 |
# File 'lib/active_fedora/aggregation/base_extension.rb', line 50 def filters_association(extending_from, ={}) name = .delete(:as) ActiveFedora::Filter::Builder.build(self, name, .merge(extending_from: extending_from)) end |
#ordered_aggregation(name, options = {}) ⇒ Object
Convenience method for building an ordered aggregation.
39 40 41 |
# File 'lib/active_fedora/aggregation/base_extension.rb', line 39 def ordered_aggregation(name, ={}) ActiveFedora::Orders::AggregationBuilder.build(self, name, ) end |
#orders(name, options = {}) ⇒ Object
Allows ordering of an association
29 30 31 |
# File 'lib/active_fedora/aggregation/base_extension.rb', line 29 def orders(name, ={}) ActiveFedora::Orders::Builder.build(self, name, ) end |