We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0467b3f commit 5392e64Copy full SHA for 5392e64
lib/validates_email_format_of/active_model.rb
@@ -9,7 +9,7 @@ module ActiveModel
9
module Validations
10
class EmailFormatValidator < EachValidator
11
def validate_each(record, attribute, value)
12
- (ValidatesEmailFormatOf.validate_email_format(value, options.merge(generate_message: true)) || []).each do |error|
+ (ValidatesEmailFormatOf.validate_email_format(value, options) || []).each do |error|
13
record.errors.add(attribute, error)
14
end
15
0 commit comments