Remove message argument from NoteLengthValidator error approach (#37977)

This commit is contained in:
Matt Jankowski
2026-03-05 12:44:52 -05:00
committed by GitHub
parent 3d8d5f6dc7
commit 812c109e87
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
class NoteLengthValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
record.errors.add(attribute, :too_long, message: I18n.t('statuses.over_character_limit', max: options[:maximum]), count: options[:maximum]) if too_long?(value)
record.errors.add(attribute, :too_long, count: options[:maximum]) if too_long?(value)
end
private