Skip to content
Browse files

Eliminate warning with layout is unset

  • Loading branch information...
1 parent 3bdfda0 commit 90be80361f26d717f9842170315dd8659f35429d @jeremy jeremy committed Nov 10, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/abstract_controller/layouts.rb
View
2 actionpack/lib/abstract_controller/layouts.rb
@@ -100,7 +100,7 @@ def _implied_layout_name
# 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

0 comments on commit 90be803

Please sign in to comment.
Something went wrong with that request. Please try again.