Skip to content

Instantly share code, notes, and snippets.

@joshsusser
Created March 2, 2011 20:29
Show Gist options
  • Save joshsusser/851679 to your computer and use it in GitHub Desktop.
Save joshsusser/851679 to your computer and use it in GitHub Desktop.
## Gemfile
gem "mail_safe", "~> 0.3.1", :require => false
## RAILS_APP/config/environments/demo.rb
require "mail_safe" # don't spam emails in demo
## RAILS_APP/config/initializers/mail_safe.rb
if defined?(MailSafe::Config)
MailSafe::Config.internal_address_definition = /.*@(clientname|pivotallabs)\.com/i
MailSafe::Config.replacement_address = 'project-dev@googlegroups.com'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment