Permalink
Browse files

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.
  • Loading branch information...
1 parent db5a610 commit 9be22bd8d86733639fd0992a7862101cc463061d @hakanensari hakanensari committed Apr 16, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 activemodel/lib/active_model.rb
@@ -48,6 +48,7 @@ module ActiveModel
eager_autoload do
autoload :Errors
+ autoload :StrictValidationFailed, 'active_model/errors'
end
module Serializers

0 comments on commit 9be22bd

Please sign in to comment.