Permalink
Browse files

Formats should always be an array.

  • Loading branch information...
1 parent 9f93de9 commit 83729e2fe36a0a629c2a5a52a7e2970287d57036 @jeremy jeremy committed Jun 6, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/render/layouts.rb
@@ -65,7 +65,7 @@ def find_layout(layout)
if formats.size == 1
_find_layout(layout)
else
- update_details(:formats => self.formats.first){ _find_layout(layout) }
+ update_details(:formats => [self.formats.first]) { _find_layout(layout) }
end
rescue ActionView::MissingTemplate => e
update_details(:formats => nil) do

0 comments on commit 83729e2

Please sign in to comment.