Sha256: bf5600d658af082d470491329dcd949813503b2a2e2bd21591575e9ae3e386b7
Contents?: true
Size: 384 Bytes
Versions: 2
Compression:
Stored size: 384 Bytes
Contents
module ActiveFedora::Associations::Builder class BelongsTo < SingularAssociation #:nodoc: def self.macro :belongs_to end def validate_options super raise "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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active-fedora-9.10.0.pre2 | lib/active_fedora/associations/builder/belongs_to.rb |
active-fedora-9.10.0.pre1 | lib/active_fedora/associations/builder/belongs_to.rb |