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:
parent
02ad67841c
commit
ce25559c3e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue