class ActionView::RenderParser

def render_template_with_layout?(render_type, options_hash)

def render_template_with_layout?(render_type, options_hash)
  if render_type != :layout && options_hash.key?(:layout)
    parse_str(options_hash[:layout])
  end
end