Sha256: e6287c4c7070e49b3a86c8c4de9a11cc2a04a6c035810623183691317bfb6270
Contents?: true
Size: 394 Bytes
Versions: 33
Compression:
Stored size: 394 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].kind_of?(RDF::URI) raise ArgumentError, "Predicate must be a kind of RDF::URI" end end end end
Version data entries
33 entries across 33 versions & 1 rubygems