aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-03-17 13:10:54 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-03-17 13:10:54 -0400
commit48f3be8cc938e86cbc963da659c583ee1bb81319 (patch)
tree86ec78ac015de91a65269e452ed2a1d11b36a48f /activerecord
parent35afd2c53b4a49a6b4495b167eef233428123b4a (diff)
downloadrails-48f3be8cc938e86cbc963da659c583ee1bb81319.tar.gz
rails-48f3be8cc938e86cbc963da659c583ee1bb81319.tar.bz2
rails-48f3be8cc938e86cbc963da659c583ee1bb81319.zip
uniq was deprecated and removed already
This was causing an infinity loop since it was delegating to `all` and all delegating back to this module.
Diffstat (limited to 'activerecord')
-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 36689f6559..c4a22398f0 100644
--- a/activerecord/lib/active_record/querying.rb
+++ b/activerecord/lib/active_record/querying.rb
@@ -9,7 +9,7 @@ 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,
- :having, :create_with, :uniq, :distinct, :references, :none, :unscope, :merge, to: :all
+ :having, :create_with, :distinct, :references, :none, :unscope, :merge, to: :all
delegate :count, :average, :minimum, :maximum, :sum, :calculate, to: :all
delegate :pluck, :ids, to: :all