This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.markdown | ||
| |
Rakefile | ||
| |
init.rb | ||
| |
lib/ | ||
| |
test/ |
README.markdown
Diversion
Divert your ActionMailer messages to a specified email address without having to change your delivery method.
WHY?
When testing an application it is desirable that your configured application environment be as close as possible to one used in production. This plugin allows minimal modification to the environment, while allowing testing that doesn't deliver undesired emails.
Example
# in config/initializers/action_mailer.rb
# Divert emails to a common mailbox
ActionMailer::Base.divert_to = "diverted@example.com" if ENV['RAILS_ENV'] == 'development'
...
Installation
$ script/plugin install git://github.com/sbfaulkner/diversion.git
TODO
- tests!
Legal
Author: S. Brent Faulkner brentf@unwwwired.net
License: Copyright © 2008-2009 unwwwired.net, released under the MIT license








