Skip to content

Commit 9f1b632

Browse files
authored
Merge pull request rails#45802 from EduardoGHdez/docs/belongs-to-default
[ci-skip] Docs: Update belongs_to [:default] option section
2 parents a393e0d + c619cec commit 9f1b632

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/lib/active_record/associations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,6 +1768,7 @@ def has_one(name, scope = nil, **options)
17681768
# [:default]
17691769
# Provide a callable (i.e. proc or lambda) to specify that the association should
17701770
# be initialized with a particular record before validation.
1771+
# Please note that callable won't be executed if the record exists.
17711772
# [:strict_loading]
17721773
# Enforces strict loading every time the associated record is loaded through this association.
17731774
# [:ensuring_owner_was]

0 commit comments

Comments
 (0)