aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-03-07 21:32:18 +0900
committerGitHub <noreply@github.com>2019-03-07 21:32:18 +0900
commit6746eea789f3285c66ee618c2786ff3c1ea64b45 (patch)
tree23c7c5265bbfacf7788e282831b329778fad2256 /activerecord/lib
parent60c953c9715a116b17757fa6f5ee38ee3844f01e (diff)
parent8309706239769c429bbd323ba4d36d8ef10bb2f1 (diff)
downloadrails-6746eea789f3285c66ee618c2786ff3c1ea64b45.tar.gz
rails-6746eea789f3285c66ee618c2786ff3c1ea64b45.tar.bz2
rails-6746eea789f3285c66ee618c2786ff3c1ea64b45.zip
Merge pull request #35512 from kamipo/delegate_only
Delegate `only` query method to relation as with `except`
Diffstat (limited to 'activerecord/lib')
-rw-r--r--activerecord/lib/active_record/querying.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/querying.rb b/activerecord/lib/active_record/querying.rb
index 36e2134c46..7a8d0cb663 100644
--- a/activerecord/lib/active_record/querying.rb
+++ b/activerecord/lib/active_record/querying.rb
@@ -14,7 +14,7 @@ module ActiveRecord
:find_each, :find_in_batches, :in_batches,
:select, :reselect, :order, :reorder, :group, :limit, :offset, :joins, :left_joins, :left_outer_joins,
:where, :rewhere, :preload, :eager_load, :includes, :from, :lock, :readonly, :extending, :or,
- :having, :create_with, :distinct, :references, :none, :unscope, :merge, :except,
+ :having, :create_with, :distinct, :references, :none, :unscope, :merge, :except, :only,
:count, :average, :minimum, :maximum, :sum, :calculate,
:pluck, :pick, :ids
].freeze # :nodoc: