Skip to content

Commit

Permalink
Merge pull request #20708 from sikachu/update-pluck-suggestion
Browse files Browse the repository at this point in the history
Update .pluck documentation on uniq
  • Loading branch information
Zachary Scott committed Jun 26, 2015
2 parents 0bee410 + 03f35fc commit 4b4075b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activerecord/lib/active_record/relation/calculations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def calculate(operation, column_name)
# # SELECT people.id, people.name FROM people
# # => [[1, 'David'], [2, 'Jeremy'], [3, 'Jose']]
#
# Person.pluck('DISTINCT role')
# Person.uniq.pluck(:role)
# # SELECT DISTINCT role FROM people
# # => ['admin', 'member', 'guest']
#
Expand Down

0 comments on commit 4b4075b

Please sign in to comment.