File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
activerecord/lib/active_record Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -586,8 +586,10 @@ def association_instance_set(name, association)
586
586
# has_many :birthday_events, ->(user) { where(starts_on: user.birthday) }, class_name: 'Event'
587
587
# end
588
588
#
589
- # Note: Joining, eager loading, and preloading of these associations is not possible.
590
- # These operations happen before instance creation and the scope will be called with a +nil+ argument.
589
+ # Note: Joining and eager loading of these associations is not possible.
590
+ # These two operations happen before instance creation and the scope will be called with a +nil+ argument.
591
+ # It is allowed to be preloaded, but in the case that there's a different scope for each record,
592
+ # this will perform N+1 queries. (this is essentially the same as preloading polymorphic scopes).
591
593
#
592
594
# == Association callbacks
593
595
#
You can’t perform that action at this time.
0 commit comments