Checks that the constraint type is appropriate to the relationship
@param [Fixnum] cardinality
cardinality of relationship
@param [Symbol] name
name of relationship to evaluate constraint of
@param [Hash] options
options hash
@option *args :constraint[Symbol]
one of VALID_CONSTRAINT_VALUES
@raise ArgumentError
if @option :constraint is not one of VALID_CONSTRAINT_TYPES
@return [Undefined]
@api private
# File lib/data_mapper/constraints/relationship/many_to_many.rb, line 32 32: def assert_valid_constraint 33: super 34: 35: # TODO: is any constraint valid for a m:m relationship? 36: if @constraint == :set_nil 37: raise ArgumentError, "#{@constraint} is not a valid constraint type for #{self.class}" 38: end 39: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.