Sha256: 4ede6ec3330f52aead1e1a29ed95b28f0e3dcfa11e2c44673957cab5e3762abf
Contents?: true
Size: 391 Bytes
Versions: 9
Compression:
Stored size: 391 Bytes
Contents
module ActiveFedora::Associations::Builder class BelongsTo < SingularAssociation #:nodoc: self.macro = :belongs_to def validate_options super if !options[:predicate] raise "You must specify a predicate for #{name}" elsif !options[:predicate].is_a?(RDF::URI) raise ArgumentError, "Predicate must be a kind of RDF::URI" end end end end
Version data entries
9 entries across 9 versions & 1 rubygems