aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/querying.rb
diff options
context:
space:
mode:
authorAbhay Nikam <nikam.abhay1@gmail.com>2019-03-03 19:09:45 +0530
committerAbhay Nikam <nikam.abhay1@gmail.com>2019-03-03 22:25:10 +0530
commit82b0ff03b1d97c29472a65ef15103932d15ff75e (patch)
tree12887d6150b67e1a1fa63d9311412785dc21bff1 /activerecord/lib/active_record/querying.rb
parente33c1f3c26ff3d2921d953d5c747cb5b90c6c1c6 (diff)
downloadrails-82b0ff03b1d97c29472a65ef15103932d15ff75e.tar.gz
rails-82b0ff03b1d97c29472a65ef15103932d15ff75e.tar.bz2
rails-82b0ff03b1d97c29472a65ef15103932d15ff75e.zip
Fixed reselect throwing NoMethodError on ActiveRecord.
Diffstat (limited to 'activerecord/lib/active_record/querying.rb')
-rw-r--r--activerecord/lib/active_record/querying.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb
index b3eeb60571..79af51bdba 100644
--- a/activerecord/lib/active_record/querying.rb
+++ b/activerecord/lib/active_record/querying.rb
@@ -11,7 +11,8 @@ module ActiveRecord
delegate :find_each, :find_in_batches, :in_batches, to: :all
delegate :select, :group, :order, :except, :reorder, :limit, :offset, :joins, :left_joins, :left_outer_joins, :or,
:where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly, :extending,
- :having, :create_with, :distinct, :references, :none, :unscope, :merge, to: :all
+ :having, :create_with, :distinct, :references, :none, :unscope, :merge,
+ :reselect, to: :all
delegate :count, :average, :minimum, :maximum, :sum, :calculate, to: :all
delegate :pluck, :pick, :ids, to: :all