module AbstractController::Layouts
def _normalize_options(options)
def _normalize_options(options) super if _include_layout?(options) layout = options.key?(:layout) ? options.delete(:layout) : :default value = _layout_for_option(layout) options[:layout] = (value =~ /\blayouts/ ? value : "layouts/#{value}") if value end end