Skip to content

Commit

Permalink
Formats should always be an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jun 6, 2010
1 parent 9f93de9 commit 83729e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/render/layouts.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 83729e2

Please sign in to comment.