Revert "Eliminate warning with layout is unset"

This reverts commit 90be80361f.
This commit is contained in:
Jeremy Kemper
2009-11-10 15:43:37 -08:00
parent e889f315c8
commit 6480850d37

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