Skip to content
This repository
Browse code

Eliminate warning with layout is unset

  • Loading branch information...
commit 90be80361f26d717f9842170315dd8659f35429d 1 parent 3bdfda0
Jeremy Kemper jeremy authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  actionpack/lib/abstract_controller/layouts.rb
2  actionpack/lib/abstract_controller/layouts.rb
@@ -100,7 +100,7 @@ def _implied_layout_name
100 100 # name, return that string. Otherwise, use the superclass'
101 101 # layout (which might also be implied)
102 102 def _write_layout_method
103   - case @_layout
  103 + case @_layout ||= nil
104 104 when String
105 105 self.class_eval %{def _layout(details) #{@_layout.inspect} end}
106 106 when Symbol

0 comments on commit 90be803

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