app/models/spotlight/contact_email.rb in blacklight-spotlight-3.5.0.4 vs app/models/spotlight/contact_email.rb in blacklight-spotlight-3.6.0.beta1
- old
+ new
@@ -24,10 +24,10 @@
def valid_email
begin
parsed = Mail::Address.new(email)
rescue Mail::Field::ParseError => e
- Rails.logger.debug "Failed to parse email #{email}: #{e}"
+ Rails.logger.debug { "Failed to parse email #{email}: #{e}" }
end
errors.add :email, 'is not valid' if parsed.nil? || parsed.address != email || parsed.local == email
end