github truemail-rb/truemail v3.0.0
v3.0.0: Feature/Ability to specify whitelisted/blacklisted emails directly

latest releases: v3.3.1, v3.3.0, v3.2.0...
2 years ago

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

Don't miss a new truemail release

NewReleases is sending notifications on new releases.