Module: Sequel::Plugins::ConstraintValidations::InstanceMethods

Defined in:
lib/sequel/plugins/constraint_validations.rb

Instance Method Summary collapse

Instance Method Details

#validateObject

Run all of the constraint validations parsed from the database when validating the instance.


240
241
242
243
244
245
246
# File 'lib/sequel/plugins/constraint_validations.rb', line 240

def validate
  super
  model.constraint_validations.each do |v|
    # Allow calling private validation methods
    send(*v)
  end
end