Revert "Eliminate warning with layout is unset"

This reverts commit 1fcf32f8fe.
This commit is contained in:
Jeremy Kemper
2009-11-10 16:09:52 -08:00
parent c626be796c
commit d8fd0499bf

View File

@@ -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 defined?(@_layout) ? @_layout : nil
case @_layout
when String
self.class_eval %{def _layout(details) #{@_layout.inspect} end}
when Symbol