mirror of https://github.com/rails/rails
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:
parent
4b4895e60d
commit
bdd7e24bf2
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue