aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/abstract_controller
diff options
context:
space:
mode:
authorAlexey Vakhov <vakhov@gmail.com>2012-02-28 10:57:28 +0400
committerAlexey Vakhov <vakhov@gmail.com>2012-02-28 14:42:57 +0400
commitb27c29ef4a26755b8de04686241694ce5ee33724 (patch)
tree41a114be7cee24e0dff847c1bf0a20393b8b2f3e /actionpack/lib/abstract_controller
parent699ba8ab52973bf0499643235f162734fb644ab7 (diff)
downloadrails-b27c29ef4a26755b8de04686241694ce5ee33724.tar.gz
rails-b27c29ef4a26755b8de04686241694ce5ee33724.tar.bz2
rails-b27c29ef4a26755b8de04686241694ce5ee33724.zip
Fix layout lookup for anonymous controller
Diffstat (limited to 'actionpack/lib/abstract_controller')
-rw-r--r--actionpack/lib/abstract_controller/layouts.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/abstract_controller/layouts.rb b/actionpack/lib/abstract_controller/layouts.rb
index aa39e21ba9..92e93cbee7 100644
--- a/actionpack/lib/abstract_controller/layouts.rb
+++ b/actionpack/lib/abstract_controller/layouts.rb
@@ -280,6 +280,10 @@ module AbstractController
<<-RUBY
lookup_context.find_all("#{_implied_layout_name}", #{prefixes.inspect}).first || super
RUBY
+ else
+ <<-RUBY
+ super
+ RUBY
end
layout_definition = case _layout