lib/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
        render_content method_name, template
        method_name_with_extension = add_extension(extend_with_mailer_name(method_name))
        render_layout_template template, method_name_with_extension
      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 render_content method_name , template method_name_with_extension = add_extension ( extend_with_mailer_name ( method_name ) ) render_layout_template template , method_name_with_extension 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