Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Eliminate warning with layout is unset

  • Loading branch information...
commit 1fcf32f8fef8fb5a63a66edacf556a107d12c049 1 parent f14eb68
Jeremy Kemper jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/abstract_controller/layouts.rb
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 defined?(@_layout) ? @_layout : nil
when String
self.class_eval %{def _layout(details) #{@_layout.inspect} end}
when Symbol
Please sign in to comment.
Something went wrong with that request. Please try again.