Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Configurable default validation type, #48 #49

Merged
merged 3 commits into from
Jun 18, 2019

Conversation

bestwebua
Copy link
Member

@bestwebua bestwebua commented Jun 18, 2019

Implement configurable default validation type.

You can predefine default validation type for Truemail.validate('email@email.com') call without with-parameter. Available validation types: :regex, :mx, :smtp. By default validation type still be :smtp

Truemail.configure do |config|
  config.verifier_email = 'verifier@example.com'
  config.default_validation_type = :mx
end

@bestwebua bestwebua merged commit a8152d4 into develop Jun 18, 2019
@bestwebua bestwebua deleted the feature/configurable-default-validation-type branch June 18, 2019 05:37
@bestwebua bestwebua changed the title Feature/configurable default validation type, #48 Feature/Configurable default validation type, #48 Feb 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

1 participant