Module: ThemesForRails::MailerMethods::InstanceMethods

Defined in:
lib/themes_for_rails/mailer_methods.rb

Instance Method Summary collapse

Instance Method Details

#mail_with_theme(headers = {}, &block) ⇒ Object



11
12
13
14
15
16
# File 'lib/themes_for_rails/mailer_methods.rb', line 11

def mail_with_theme(headers = {}, &block)
  theme_opts = headers[:theme] || self.class.default[:theme]
  theme(theme_opts) if theme_opts

  mail_without_theme(headers, &block)
end