Skip to content

Commit 701311e

Browse files
Improve wording on eager_load and preload AR docs [ci skip]
1 parent c4b0509 commit 701311e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ def includes!(*args) # :nodoc:
235235
# # LIMIT 5
236236
#
237237
# Instead of loading the 5 addresses with 5 separate queries, all addresses
238-
# are loaded with a single query.
238+
# are loaded with a single joined query.
239239
#
240-
# Loading multiple and nested associations is possible using a Arrays and
241-
# Hashes, similar to #includes:
240+
# Loading multiple and nested associations is possible using Hashes and Arrays,
241+
# similar to #includes:
242242
#
243243
# User.eager_load(:address, friends: [:address, :followers])
244244
# # SELECT "users"."id" AS t0_r0, "users"."name" AS t0_r1, ... FROM "users"
@@ -272,8 +272,8 @@ def eager_load!(*args) # :nodoc:
272272
# Instead of loading the 5 addresses with 5 separate queries, all addresses
273273
# are loaded with a separate query.
274274
#
275-
# Loading multiple and nested associations is possible using a Arrays and
276-
# Hashes, similar to #includes:
275+
# Loading multiple and nested associations is possible using Hashes and Arrays,
276+
# similar to #includes:
277277
#
278278
# User.preload(:address, friends: [:address, :followers])
279279
# # SELECT "users".* FROM "users"

0 commit comments

Comments
 (0)