Skip to content

Commit

Permalink
==, >=, and <= are public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Oct 2, 2020
1 parent 6d45be5 commit c7e68d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activemodel/lib/active_model/validations/length.rb
Expand Up @@ -51,7 +51,7 @@ def validate_each(record, attribute, value)
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
Expand Down

0 comments on commit c7e68d1

Please sign in to comment.