lib/awesome_email/layouts.rb
# render with layout, if it is set through the "layout" accessor method and a corresponding file is found
render with layout, if it is set through the "layout" accessor method and a corresponding file is found
render with layout if it is set through the " layout " accessor method and a corresponding file is found
def render_message_with_layouts(method_name, body)
        return render_message_without_layouts(method_name, body) if @layout.blank?
        template = initialize_template_class body
        template = render_content method_name, template
        render_layout_template template, method_name
      end
def render_message_with_layouts ( method_name , body ) return render_message_without_layouts ( method_name , body ) if @layout . blank? template = initialize_template_class body template = render_content method_name , template render_layout_template template , method_name end
render with layout, if it is set through the "layout" accessor method and a corresponding file is found
render with layout if it is set through the " layout " accessor method and a corresponding file is found
# template was set, now render with layout
method_name
body