Comparison operator methods on Integer are public methods

This commit is contained in:
Akira Matsuda 2020-10-02 13:41:42 +09:00
parent 02ad67841c
commit ce25559c3e
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ module ActiveModel
option_value = parse_as_number(option_value, precision, scale)
unless value.send(CHECKS[option], option_value)
unless value.public_send(CHECKS[option], option_value)
record.errors.add(attr_name, option, **filtered_options(value).merge!(count: option_value))
end
end