提交 9be22bd8 编写于 作者: H hakanensari

Autoload ActiveModel::StrictValidationFailed

Currently, if environment doesn’t eager load code, invoking this
constant before calling #valid? on a model instance results in a
NameError.
上级 db5a610e
......@@ -48,6 +48,7 @@ module ActiveModel
eager_autoload do
autoload :Errors
autoload :StrictValidationFailed, 'active_model/errors'
end
module Serializers
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册