1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

doc fix: Just referencing an association does not indeed load the records

[ci skip]
This commit is contained in:
Akira Matsuda 2020-11-26 01:52:14 +09:00
parent f96d457c3d
commit 2066d64c9b

View file

@ -46,7 +46,7 @@ module ActiveRecord
# Returns +true+ if the association has been loaded, otherwise +false+.
#
# person.pets.loaded? # => false
# person.pets
# person.pets.records
# person.pets.loaded? # => true
def loaded?
@association.loaded?