Module: Roadie::Rails::Mailer
- Defined in:
- lib/roadie/rails/mailer.rb
Instance Method Summary collapse
-
#roadie_mail(options = {}, final_roadie_options = roadie_options, &block) ⇒ Object
Generate an email and run Roadie on it.
- #roadie_options ⇒ Object
Instance Method Details
#roadie_mail(options = {}, final_roadie_options = roadie_options, &block) ⇒ Object
Generate an email and run Roadie on it. Will use #roadie_options to get default options if not passed in.
8 9 10 11 12 13 14 15 |
# File 'lib/roadie/rails/mailer.rb', line 8 def roadie_mail( = {}, = , &block ) email = mail(, &block) MailInliner.new(email, ).execute end |
#roadie_options ⇒ Object
17 18 19 |
# File 'lib/roadie/rails/mailer.rb', line 17 def ::Rails.application.config.roadie end |