1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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