File: valid_email.rb

package info (click to toggle)
ruby-valid-email 0.1.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 280 kB
  • sloc: ruby: 561; makefile: 4
file content (5 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (3)
1
2
3
4
5
require 'valid_email/all'
I18n.load_path += Dir.glob(File.expand_path('../../config/locales/**/*',__FILE__))
# Load list of disposable email domains
config = File.expand_path('../../config/valid_email.yml',__FILE__)
BanDisposableEmailValidator.config= YAML.load_file(config)['disposable_email_services'] rescue []