1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Eliminate warning with layout is unset

This commit is contained in:
Jeremy Kemper 2009-11-10 14:13:21 -08:00
parent 3bdfda0730
commit 90be80361f

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