Method: Sequel::Plugins::ConstraintValidations.apply
- Defined in:
- lib/sequel/plugins/constraint_validations.rb
.apply(model, opts = OPTS) ⇒ Object
Automatically load the validation_helpers plugin to run the actual validations.
41 42 43 44 45 46 47 |
# File 'lib/sequel/plugins/constraint_validations.rb', line 41 def self.apply(model, opts=OPTS) model.instance_exec do plugin :validation_helpers @constraint_validations_table = DEFAULT_CONSTRAINT_VALIDATIONS_TABLE @constraint_validation_options = {} end end |