mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Add support of punycode domains in emails
This commit is contained in:
parent
56ac816dd1
commit
b4369bdcd0
6 changed files with 77 additions and 21 deletions
|
@ -30,8 +30,10 @@ Truemail.configure do |config|
|
|||
# Available validation types: :regex, :mx, :smtp
|
||||
if Rails.env.production?
|
||||
config.default_validation_type = :smtp
|
||||
else
|
||||
elsif Rails.env.test?
|
||||
config.default_validation_type = :regex
|
||||
else
|
||||
config.default_validation_type = :mx
|
||||
end
|
||||
|
||||
# Optional parameter. You can predefine which type of validation will be used for domains.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue