We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50390cf + 8a2fd9c commit ec1c5acCopy full SHA for ec1c5ac
activerecord/lib/active_record/core.rb
@@ -690,6 +690,8 @@ def strict_loading?
690
# Sets the record to strict_loading mode. This will raise an error
691
# if the record tries to lazily load an association.
692
#
693
+ # NOTE: Strict loading is disabled during validation in order to let the record validate its association.
694
+ #
695
# user = User.first
696
# user.strict_loading! # => true
697
# user.address.city
0 commit comments