Sha256: 1247ef6d31a07a77c32711f995785377807a8ace7fdaea86c12e4a2c84f3f958
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
module ActiveFedora::Associations::Builder class HasAndBelongsToMany < CollectionAssociation # :nodoc: def self.macro :has_and_belongs_to_many end def self.valid_options(options) super + [:inverse_of, :solr_page_size] end def self.validate_options(options) super raise ArgumentError, "You must specify a predicate for #{name}" unless options[:predicate] raise ArgumentError, "Predicate must be a kind of RDF::URI" unless options[:predicate].is_a?(RDF::URI) end end end
Version data entries
4 entries across 4 versions & 1 rubygems