Class: ConsistencyValidator
- Inherits:
-
ActiveModel::EachValidator
- Object
- ActiveModel::EachValidator
- ConsistencyValidator
- Defined in:
- lib/tram/validators/consistency_validator.rb
Overview
Compares value of the attribute to value of another attribute
Instance Method Summary collapse
Instance Method Details
#validate_each(record, attribute, value) ⇒ Object
8 9 10 11 12 |
# File 'lib/tram/validators/consistency_validator.rb', line 8 def validate_each(record, attribute, value) Tram::Validators::CONDITIONS.each do |key, block| check(key, record, attribute, value, &block) end end |