Skip to content
Snippets Groups Projects
Commit 03f4c214 authored by takayamaki's avatar takayamaki Committed by Eugen Rochko
Browse files

fix: Don't validate MX record in development (#7654)

parent c0355878
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ require 'resolv'
class EmailMxValidator < ActiveModel::Validator
def validate(user)
return if Rails.env.test?
return if Rails.env.test? || Rails.env.development?
user.errors.add(:email, I18n.t('users.invalid_email')) if invalid_mx?(user.email)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment