diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 01:41:09 -0800 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-11-30 01:41:09 -0800 |
commit | 271308cb9617b86cd4de20b629be504b48aea537 (patch) | |
tree | d713dd695abdcb09f1c191f1844166a27bf8ba38 /activerecord/lib/active_record/associations/collection_proxy.rb | |
parent | 38ab982cfff98570b5f12933cff489364845789c (diff) | |
parent | a382d60f6abc94b6a965525872f858e48abc00de (diff) | |
download | rails-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/associations/collection_proxy.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/collection_proxy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/collection_proxy.rb b/activerecord/lib/active_record/associations/collection_proxy.rb index 3181ca9a32..80bc4990d2 100644 --- a/activerecord/lib/active_record/associations/collection_proxy.rb +++ b/activerecord/lib/active_record/associations/collection_proxy.rb @@ -39,7 +39,7 @@ module ActiveRecord instance_methods.each { |m| undef_method m unless m.to_s =~ /^(?:nil\?|send|object_id|to_a)$|^__|^respond_to|proxy_/ } delegate :group, :order, :limit, :joins, :where, :preload, :eager_load, :includes, :from, - :lock, :readonly, :having, :to => :scoped + :lock, :readonly, :having, :pluck, :to => :scoped delegate :target, :load_target, :loaded?, :scoped, :to => :@association |