提交 fc6b961b 编写于 作者: P Piotr Sarnacki

Merge pull request #5365 from avakhov/ac-layouts-excpetion-msgs

Fix exceptions messages in AC layouts
......@@ -311,7 +311,7 @@ def _write_layout_method
when false
nil
when true
raise ArgumentError, "Layouts must be specified as a String, Symbol, false, or nil"
raise ArgumentError, "Layouts must be specified as a String, Symbol, Proc, false, or nil"
when nil
name_clause
end
......@@ -371,7 +371,7 @@ def _layout_for_option(name)
when false, nil then nil
else
raise ArgumentError,
"String, true, or false, expected for `layout'; you passed #{name.inspect}"
"String, Proc, :default, true, or false, expected for `layout'; you passed #{name.inspect}"
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册