Revert "Revert "Eliminate warning with layout is unset""

This reverts commit d8fd0499bf.
This commit is contained in:
Jeremy Kemper 2009-11-10 16:15:43 -08:00
parent 8cd486da80
commit 631a27d6a5
1 changed files with 1 additions and 1 deletions

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