https://github.com/adam12/roda-mailer_ext
Teach the Roda mailer plugin a few neat tricks
https://github.com/adam12/roda-mailer_ext
roda roda-mailer-plugin
Last synced: about 1 year ago
JSON representation
Teach the Roda mailer plugin a few neat tricks
- Host: GitHub
- URL: https://github.com/adam12/roda-mailer_ext
- Owner: adam12
- Created: 2017-02-08T20:58:42.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-12-27T16:21:15.000Z (over 1 year ago)
- Last Synced: 2025-04-07T05:43:27.785Z (about 1 year ago)
- Topics: roda, roda-mailer-plugin
- Language: Ruby
- Size: 22.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Roda Mailer Extensions
A few helpful extensions to the Roda mailer plugin.
## Installation
Add this line to your application's Gemfile:
```ruby
gem "roda-mailer_ext"
```
And then execute:
$ bundle
Or install it yourself as:
$ gem install roda-mailer_ext
## Usage
Simply configure this plugin as you would any other plugin. Without any options,
the plugin is a no-op. You will want to use the `log` or `prevent_delivery` options
to make the plugin useful.
I like to pair this plugin with the [environments](http://roda.jeremyevans.net/rdoc/classes/Roda/RodaPlugins/Environments.html)
plugin to configure depending on current `RACK_ENV`.
plugin :environments
plugin :mailer_ext,
log: (development? or production?),
prevent_delivery: !production?
## Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/adam12/roda-mailer_ext.
I love pull requests! If you fork this project and modify it, please ping me to see
if your changes can be incorporated back into this project.
That said, if your feature idea is nontrivial, you should probably open an issue to
[discuss it](http://www.igvita.com/2011/12/19/dont-push-your-pull-requests/)
before attempting a pull request.
## License
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).