aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/base.rb
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-11-30 01:41:09 -0800
committerJon Leighton <j@jonathanleighton.com>2011-11-30 01:41:09 -0800
commit271308cb9617b86cd4de20b629be504b48aea537 (patch)
treed713dd695abdcb09f1c191f1844166a27bf8ba38 /activerecord/lib/active_record/base.rb
parent38ab982cfff98570b5f12933cff489364845789c (diff)
parenta382d60f6abc94b6a965525872f858e48abc00de (diff)
downloadrails-271308cb9617b86cd4de20b629be504b48aea537.tar.gz
rails-271308cb9617b86cd4de20b629be504b48aea537.tar.bz2
rails-271308cb9617b86cd4de20b629be504b48aea537.zip
Merge pull request #1915 from bogdan/active_record_map
ActiveRecord::Base.map method for direct select by single column
Diffstat (limited to 'activerecord/lib/active_record/base.rb')
-rw-r--r--activerecord/lib/active_record/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 484fe5fb16..2a02380591 100644
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -449,7 +449,7 @@ module ActiveRecord #:nodoc:
delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins,
:where, :preload, :eager_load, :includes, :from, :lock, :readonly,
:having, :create_with, :uniq, :to => :scoped
- delegate :count, :average, :minimum, :maximum, :sum, :calculate, :to => :scoped
+ delegate :count, :average, :minimum, :maximum, :sum, :calculate, :pluck, :to => :scoped
def inherited(child_class) #:nodoc:
# force attribute methods to be higher in inheritance hierarchy than other generated methods