Skip to content

Commit

Permalink
Merge pull request rails#46545 from fatkodima/eager_load-validation_e…
Browse files Browse the repository at this point in the history
…rror

Autoload `ActiveModel::ValidationError`
  • Loading branch information
rafaelfranca committed Nov 22, 2022
2 parents 6496226 + f2f3fa9 commit dbd9311
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions activemodel/lib/active_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dbd9311

Please sign in to comment.