Class: AwesomeMailer::Base

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/awesome_mailer/base.rb

Instance Method Summary collapse

Instance Method Details

#render(*arguments) ⇒ Object



7
8
9
10
# File 'lib/awesome_mailer/base.rb', line 7

def render(*arguments)
  return super unless formats.include? :html
  AwesomeMailer::Renderer.new(super).to_html
end