提交 83729e2f 编写于 作者: J Jeremy Kemper

Formats should always be an array.

上级 9f93de9d
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册