Sha256: fcb9ea5b3dab4325d8afeb0615adbe8d6613e3bf6ee945cbd4bb754669b71921
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
#Copyright (c) 2008-12 Peter H. Boling of 9thBit LLC #Released under the MIT license require 'rails' require 'action_mailer' module SanitizeEmail require 'sanitize_email/version' require 'sanitize_email/config' require 'sanitize_email/bleach' require 'sanitize_email/deprecation' # Allow non-rails implementations to use this gem if @rails = defined?(Rails) && ::Rails::VERSION::MAJOR >= 3 if ::Rails::VERSION::MINOR >= 1 require 'sanitize_email/engine' elsif ::Rails::VERSION::MINOR == 0 require 'sanitize_email/railtie' end elsif @rails = defined?(Rails) raise "Please use the 0.X.X versions of sanitize_email for Rails 2.X and below." end def self.[](key) return nil unless key.respond_to?(:to_sym) SanitizeEmail::Config.config[key.to_sym] end def self.method_missing(name, *args) SanitizeEmail[name] end def self.sanitized_recipients SanitizeEmail[:sanitized_recipients] end def self.local_environments SanitizeEmail[:local_environments] end class << self extend SanitizeEmail::Deprecation deprecated_alias :sanitized_recipients, :sanitized_to deprecated :local_environments, :local_environment_proc end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sanitize_email-1.0.0.rc1 | lib/sanitize_email.rb |