Module: ActiveModel::Validations::Comparability
Do not use. This module is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | activemodel/lib/active_model/validations/comparability.rb |
Constant Summary
-
COMPARE_CHECKS =
# File 'activemodel/lib/active_model/validations/comparability.rb', line 6{ greater_than: :>, greater_than_or_equal_to: :>=, equal_to: :==, less_than: :<, less_than_or_equal_to: :<=, other_than: :!= }.freeze
Instance Method Summary
Instance Method Details
#error_options(value, option_value)
[ GitHub ]# File 'activemodel/lib/active_model/validations/comparability.rb', line 10
def (value, option_value) .except(*COMPARE_CHECKS.keys).merge!( count: option_value, value: value ) end