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:
parent
3bdfda0730
commit
90be80361f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue