From 9be22bd8d86733639fd0992a7862101cc463061d Mon Sep 17 00:00:00 2001 From: hakanensari Date: Wed, 16 Apr 2014 22:48:51 +0100 Subject: Autoload ActiveModel::StrictValidationFailed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Currently, if environment doesn’t eager load code, invoking this constant before calling #valid? on a model instance results in a NameError. --- activemodel/lib/active_model.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activemodel/lib/active_model.rb') 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 -- cgit v1.2.3