White-list email addresses for ActionMailer in staging environments.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
Gemfile
Gemfile.lock
README.md
catch_all.gemspec

README.md

ActionMailer::CatchAll

ActionMailer::CatchAll is a simple module to define a white-list of email addresses, used for staging environments.

Usage

Gemfile:

gem 'catch_all'

config/initializers/email_catch_all.rb:

if Rails.env.staging?
  ActionMailer::CatchAll.enable('scott@railsnewbie.com')
end