Sha256: 1a7326a3ec03bf1382905a535b4c8be9a09317dccf99c7bd635d885ac4ab715f
Contents?: true
Size: 1.14 KB
Versions: 1
Compression:
Stored size: 1.14 KB
Contents
module SanitizeEmail class Config cattr_accessor :config self.config ||= { # Adds the following class attributes to the classes that include NinthBit::SanitizeEmail :force_sanitize => nil, # Specify the BCC addresses for the messages that go out in 'local' environments :sanitized_bcc => nil, # Specify the CC addresses for the messages that go out in 'local' environments :sanitized_cc => nil, # The recipient addresses for the messages, either as a string (for a single # address) or an array (for multiple addresses) that go out in 'local' environments :sanitized_recipients => nil, # Use the 'real' email address as the username for the sanitized email address # e.g. "real@example.com <sanitized@example.com>" :use_actual_email_as_sanitized_user_name => false, # Prepend the 'real' email address onto the Subject line of the message # e.g. "real@example.com rest of subject" :use_actual_email_prepended_to_subject => false, :local_environments => %w( development test ) } def self.configure &block yield self.config end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sanitize_email-1.0.0.alpha2 | lib/sanitize_email/config.rb |