mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Revert "Eliminate warning with layout is unset"
This reverts commit 90be80361f.
This commit is contained in:
@@ -100,7 +100,7 @@ module AbstractController
|
||||
# name, return that string. Otherwise, use the superclass'
|
||||
# layout (which might also be implied)
|
||||
def _write_layout_method
|
||||
case @_layout ||= nil
|
||||
case @_layout
|
||||
when String
|
||||
self.class_eval %{def _layout(details) #{@_layout.inspect} end}
|
||||
when Symbol
|
||||
|
||||
Reference in New Issue
Block a user