class InequalityValidator
Checks if the value of an attribute is equal to a value or proc result.
Private Instance Methods
compare_value(value, reference_value)
click to toggle source
# File lib/missing_validators/validators/inequality_validator.rb, line 6 def compare_value(value, reference_value) value != reference_value end
translation_key()
click to toggle source
# File lib/missing_validators/validators/inequality_validator.rb, line 10 def translation_key 'errors.messages.inequality' end