v3.0.0: Feature/Ability to specify whitelisted/blacklisted emails directly
What's Changed
- Feature/Ability to specify whitelisted/blacklisted emails by complete match by @bestwebua in #230
Truemail.configure do |config|
# Optional parameter. Validation of email which contains whitelisted emails always will
# return true. Other validations will not processed even if it was defined in validation_type_for
# It is equal to empty array by default.
config.whitelisted_emails = %w[user@somedomain1.com user@somedomain2.com]
# Optional parameter. Validation of email which contains blacklisted emails always will
# return false. Other validations will not processed even if it was defined in validation_type_for
# It is equal to empty array by default.
config.blacklisted_emails = %w[user@somedomain3.com user@somedomain4.com]
end
Full Changelog: v2.7.5...v3.0.0