module ActiveModel::Validations::Comparability
def error_options(value, option_value)
def error_options(value, option_value) options.except(*COMPARE_CHECKS.keys).merge!( count: option_value, value: value ) end
def option_value(record, option_value)
def option_value(record, option_value) case option_value when Proc option_value.call(record) when Symbol record.send(option_value) else option_value end end