From f2f3fa95ece86292eeb4b2f7c8214a0e33cfbbf5 Mon Sep 17 00:00:00 2001 From: fatkodima Date: Tue, 22 Nov 2022 12:33:54 +0200 Subject: [PATCH] Autoload `ActiveModel::ValidationError` --- activemodel/lib/active_model.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/activemodel/lib/active_model.rb b/activemodel/lib/active_model.rb index bdc3fe11a3098..21239545d2ec0 100644 --- a/activemodel/lib/active_model.rb +++ b/activemodel/lib/active_model.rb @@ -61,6 +61,7 @@ module ActiveModel autoload :RangeError, "active_model/errors" autoload :StrictValidationFailed, "active_model/errors" autoload :UnknownAttributeError, "active_model/errors" + autoload :ValidationError, "active_model/validations" end module Serializers