Skip to content
Browse files

Fix Calculations#pluck doc to mention several attributes can be selec…

…ted [ci skip]
  • Loading branch information...
1 parent d16a1b9 commit daab9bba887ec0682620087c39a0b4c097fc6efc Florent Guilleux committed Dec 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/lib/active_record/relation/calculations.rb
View
6 activerecord/lib/active_record/relation/calculations.rb
@@ -111,8 +111,8 @@ def calculate(operation, column_name, options = {})
0
end
- # Use <tt>pluck</tt> as a shortcut to select a single attribute without
- # loading a bunch of records just to grab one attribute you want.
+ # Use <tt>pluck</tt> as a shortcut to select one or more attributes without
+ # loading a bunch of records just to grab the attributes you want.
#
# Person.pluck(:name)
#
@@ -121,7 +121,7 @@ def calculate(operation, column_name, options = {})
# Person.all.map(&:name)
#
# Pluck returns an <tt>Array</tt> of attribute values type-casted to match
- # the plucked column name, if it can be deduced. Plucking an SQL fragment
+ # the plucked column names, if it can be deduced. Plucking an SQL fragment
# returns String values by default.
#
# Examples:

0 comments on commit daab9bb

Please sign in to comment.
Something went wrong with that request. Please try again.