diff options
author | Florent Guilleux <florent2@gmail.com> | 2012-12-01 11:23:02 -0500 |
---|---|---|
committer | Florent Guilleux <florent2@gmail.com> | 2012-12-01 11:23:02 -0500 |
commit | daab9bba887ec0682620087c39a0b4c097fc6efc (patch) | |
tree | 2e7de5437eca1cf4fa9bbb77792bb6e752dc1f61 /activerecord | |
parent | d16a1b9e8b2e94649c42e4320881e84add9ec89d (diff) | |
download | rails-daab9bba887ec0682620087c39a0b4c097fc6efc.tar.gz rails-daab9bba887ec0682620087c39a0b4c097fc6efc.tar.bz2 rails-daab9bba887ec0682620087c39a0b4c097fc6efc.zip |
Fix Calculations#pluck doc to mention several attributes can be selected [ci skip]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/relation/calculations.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/calculations.rb b/activerecord/lib/active_record/relation/calculations.rb index 72b035a023..d969660a8a 100644 --- a/activerecord/lib/active_record/relation/calculations.rb +++ b/activerecord/lib/active_record/relation/calculations.rb @@ -111,8 +111,8 @@ module ActiveRecord 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 @@ module ActiveRecord # 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: |