Module: Roadie::Rails::Mailer

Defined in:
lib/roadie/rails/mailer.rb

Instance Method Summary collapse

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(
  options = {},
  final_roadie_options = roadie_options,
  &block
)
  email = mail(options, &block)
  MailInliner.new(email, final_roadie_options).execute
end

#roadie_optionsObject



17
18
19
# File 'lib/roadie/rails/mailer.rb', line 17

def roadie_options
  ::Rails.application.config.roadie
end