diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-03-09 17:28:38 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-03-09 17:29:04 +0900 |
commit | a0438ad46aaed711dbc0331847357c87021b4f01 (patch) | |
tree | b7c3be688f9271e5f12b89492dc6a80ac1d8ab8f /activerecord/lib | |
parent | eec723f69ad0e2e957f9c9bca350a6e032c1b58f (diff) | |
parent | 6f4e66fefbcbf79351f41db0a75bf8aace43c1b7 (diff) | |
download | rails-a0438ad46aaed711dbc0331847357c87021b4f01.tar.gz rails-a0438ad46aaed711dbc0331847357c87021b4f01.tar.bz2 rails-a0438ad46aaed711dbc0331847357c87021b4f01.zip |
Merge pull request #32213 from yujideveloper/feature/delegate-ar-base-pick-to-all
Add `delegate :pick, to: :all`
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/querying.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb index 7c8f794910..d33d36ac02 100644 --- a/activerecord/lib/active_record/querying.rb +++ b/activerecord/lib/active_record/querying.rb @@ -13,7 +13,7 @@ module ActiveRecord :where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly, :extending, :having, :create_with, :distinct, :references, :none, :unscope, :merge, to: :all delegate :count, :average, :minimum, :maximum, :sum, :calculate, to: :all - delegate :pluck, :ids, to: :all + delegate :pluck, :pick, :ids, to: :all # Executes a custom SQL query against your database and returns all the results. The results will # be returned as an array with columns requested encapsulated as attributes of the model you call |