mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Return truemail
This reverts commit 862f5639ebbe4d3e6abd5d5be7fb7840e7b83bdf.
This commit is contained in:
parent
0a7b754c4c
commit
e4a02c2e47
35 changed files with 728 additions and 153 deletions
|
@ -29,11 +29,9 @@ Truemail.configure do |config|
|
|||
# Truemail.validate('email@email.com') call without with-parameter
|
||||
# Available validation types: :regex, :mx, :smtp
|
||||
if Rails.env.production?
|
||||
config.default_validation_type = :smtp
|
||||
elsif Rails.env.test?
|
||||
config.default_validation_type = :regex
|
||||
else
|
||||
config.default_validation_type = :mx
|
||||
else
|
||||
config.default_validation_type = :regex
|
||||
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