Sha256: 9eb3c76627b070b03e77423b41485745c30c230904e025f81a2131afa6b74273
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
#Copyright (c) 2008-12 Peter H. Boling of 9thBit LLC #Released under the MIT license 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 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 defined?(Rails) raise "Please use the 0.X.X versions of sanitize_email for Rails 2.X and below." elsif defined?(Mailer) && Mailer.respond_to?(:register_interceptor) Mailer.register_interceptor(SanitizeEmail::Bleach.new) 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.rc3 | lib/sanitize_email.rb |