SubjectInterceptor
SubjectInterceptor allows you to prepend text to the subject of all emails sent through ActionMailer
Installation
Add this line to your application's Gemfile:
gem 'subject_interceptor'
And then execute:
$ bundle
Or install it yourself as:
$ gem install subject_interceptor
Usage
# config/environments/staging.rb
Mail.register_interceptor SubjectInterceptor.new('[STAGING]')
Authors
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request