class NotZeroValidator < ActiveModel::EachValidator\r
def validate_each(record, attribute, value)\r
- record.errors[attribute] << (options[:message] || "is zero") if value.to_i == 0\r
+ record.errors[attribute] << (options[:message] || I18n.t('activerecord.errors.messages.not_zero')) if value.to_i == 0\r
end\r
end\r
-
+\r