Module: Sequel::Plugins::ConstraintValidations::ClassMethods
- Defined in:
- lib/sequel/plugins/constraint_validations.rb
Instance Attribute Summary collapse
-
#constraint_validation_reflections ⇒ Object
readonly
A hash of reflections of constraint validations.
-
#constraint_validations ⇒ Object
readonly
An array of validation method call arrays.
-
#constraint_validations_table ⇒ Object
readonly
The name of the table containing the constraint validations metadata.
Instance Attribute Details
#constraint_validation_reflections ⇒ Object (readonly)
A hash of reflections of constraint validations. Keys are type name symbols. Each value is an array of pairs, with the first element being the validation type symbol (e.g. :presence) and the second element being options for the validation. If the validation takes an argument, it appears as the :argument entry in the validation option hash.
92 93 94 |
# File 'lib/sequel/plugins/constraint_validations.rb', line 92 def constraint_validation_reflections @constraint_validation_reflections end |
#constraint_validations ⇒ Object (readonly)
An array of validation method call arrays. Each array is an array that is splatted to send to perform a validation via validation_helpers.
85 86 87 |
# File 'lib/sequel/plugins/constraint_validations.rb', line 85 def constraint_validations @constraint_validations end |
#constraint_validations_table ⇒ Object (readonly)
The name of the table containing the constraint validations metadata.
95 96 97 |
# File 'lib/sequel/plugins/constraint_validations.rb', line 95 def constraint_validations_table @constraint_validations_table end |