diff options
author | hakanensari <hakanensari@gmail.com> | 2014-04-16 22:48:51 +0100 |
---|---|---|
committer | hakanensari <hakanensari@gmail.com> | 2014-04-16 22:48:51 +0100 |
commit | 9be22bd8d86733639fd0992a7862101cc463061d (patch) | |
tree | 5a93fa175cbd6b7516edbec3db303f944451a2eb /activemodel/lib | |
parent | db5a610e779da3db94c6b24a10480c6d05e50a1c (diff) | |
download | rails-9be22bd8d86733639fd0992a7862101cc463061d.tar.gz rails-9be22bd8d86733639fd0992a7862101cc463061d.tar.bz2 rails-9be22bd8d86733639fd0992a7862101cc463061d.zip |
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.
Diffstat (limited to 'activemodel/lib')
-rw-r--r-- | activemodel/lib/active_model.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb index 3e49c34182..feb3d9371d 100644 --- a/activemodel/lib/active_model.rb +++ b/activemodel/lib/active_model.rb @@ -48,6 +48,7 @@ module ActiveModel eager_autoload do autoload :Errors + autoload :StrictValidationFailed, 'active_model/errors' end module Serializers |