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

==, >=, and <= are public methods

This commit is contained in:
Akira Matsuda 2020-10-02 13:18:09 +09:00
parent 6d45be5ba0
commit c7e68d1729

View file

@ -51,7 +51,7 @@ module ActiveModel
when Symbol
check_value = record.send(check_value)
end
next if value_length.send(validity_check, check_value)
next if value_length.public_send(validity_check, check_value)
end
errors_options[:count] = check_value