Improve description of ActiveRecord.joins [ci-skip]

Joins is the plural of join. So "a joins" doesn't seem correct.
To make it clear joins is a SQL term, we can upcase it just like the
descriptions for GROUP, HAVING and SELECT.
This commit is contained in:
Petrik 2021-08-19 13:58:24 +02:00
parent 4b4895e60d
commit bdd7e24bf2
1 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ module ActiveRecord
self
end
# Performs a joins on +args+. The given symbol(s) should match the name of
# Performs JOINs on +args+. The given symbol(s) should match the name of
# the association(s).
#
# User.joins(:posts)
@ -538,7 +538,7 @@ module ActiveRecord
self
end
# Performs a left outer joins on +args+:
# Performs LEFT OUTER JOINs on +args+:
#
# User.left_outer_joins(:posts)
# => SELECT "users".* FROM "users" LEFT OUTER JOIN "posts" ON "posts"."user_id" = "users"."id"