1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Formats should always be an array.

This commit is contained in:
Jeremy Kemper 2010-06-06 19:14:53 -04:00
parent 9f93de9d3d
commit 83729e2fe3

View file

@ -65,7 +65,7 @@ module ActionView
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