Merge pull request #41229 from cveneziani/doc/AR-strict-loading

Improve ActiveRecord strict_loading documentation
This commit is contained in:
Rafael França 2021-01-26 19:01:33 -05:00 committed by GitHub
commit b86367ff0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1439,7 +1439,8 @@ module ActiveRecord
# Useful for defining methods on associations, especially when they should be shared between multiple
# association objects.
# [:strict_loading]
# Enforces strict loading every time the associated record is loaded through this association.
# When set to +true+, enforces strict loading every time the associated record is loaded through this
# association.
# [:ensuring_owner_was]
# Specifies an instance method to be called on the owner. The method must return true in order for the
# associated records to be deleted in a background job.