Method: ActiveModel::Validations::ComparisonValidator#check_validity!
- Defined in:
- activemodel/lib/active_model/validations/comparison.rb
#check_validity! ⇒ Object
12 13 14 15 16 17 |
# File 'activemodel/lib/active_model/validations/comparison.rb', line 12 def check_validity! unless .keys.intersect?(COMPARE_CHECKS.keys) raise ArgumentError, "Expected one of :greater_than, :greater_than_or_equal_to, "\ ":equal_to, :less_than, :less_than_or_equal_to, or :other_than option to be supplied." end end |