fixed comment for example sql statement
Ref issue: https://github.com/rails/rails/issues/47903
This commit is contained in:
parent
385903754e
commit
98e39b8a1b
@ -322,7 +322,7 @@ def async_pick(*column_names)
|
||||
# Returns the base model's ID's for the relation using the table's primary key
|
||||
#
|
||||
# Person.ids # SELECT people.id FROM people
|
||||
# Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.person_id = people.id
|
||||
# Person.joins(:companies).ids # SELECT people.id FROM people INNER JOIN companies ON companies.id = people.company_id
|
||||
def ids
|
||||
if loaded?
|
||||
result = records.pluck(*Array(primary_key))
|
||||
|
Loading…
Reference in New Issue
Block a user