mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Define @_layout if it is not defined.
This commit is contained in:
@@ -345,6 +345,7 @@ module AbstractController
|
||||
# * <tt>template</tt> - The template object for the default layout (or nil)
|
||||
def _default_layout(require_layout = false)
|
||||
begin
|
||||
@_layout ||= nil
|
||||
layout_name = _layout if action_has_layout?
|
||||
rescue NameError => e
|
||||
raise NoMethodError,
|
||||
|
||||
Reference in New Issue
Block a user