Class: ActiveFedora::Associations::Builder::HasAndBelongsToMany
- Inherits:
-
CollectionAssociation
- Object
- Association
- CollectionAssociation
- ActiveFedora::Associations::Builder::HasAndBelongsToMany
- Extended by:
- Deprecation
- Defined in:
- lib/active_fedora/associations/builder/has_and_belongs_to_many.rb
Overview
:nodoc:
Constant Summary
Constants inherited from CollectionAssociation
CollectionAssociation::CALLBACKS
Instance Attribute Summary
Attributes inherited from Association
#mixin, #model, #name, #options
Instance Method Summary collapse
Methods inherited from CollectionAssociation
define_callback, define_callbacks
Methods inherited from Association
build, #build, #configure_dependency, define_accessors, define_callbacks, define_readers, define_writers, #initialize, #predicate, #translate_property_to_predicate
Constructor Details
This class inherits a constructor from ActiveFedora::Associations::Builder::Association
Instance Method Details
#validate_options ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/active_fedora/associations/builder/has_and_belongs_to_many.rb', line 8 def super Deprecation.warn HasAndBelongsToMany, ":solr_page_size doesn't do anything anymore and will be removed in ActiveFedora 10" if .key?(:solr_page_size) if ![:predicate] raise "You must specify a predicate for #{name}" elsif ![:predicate].kind_of?(RDF::URI) raise ArgumentError, "Predicate must be a kind of RDF::URI" end end |