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:
parent
9f93de9d3d
commit
83729e2fe3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue