diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2018-02-18 17:32:07 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2018-02-18 17:35:29 +0900 |
commit | 099a28bbecb5b6fdabcae261d22c424f67a21601 (patch) | |
tree | 033a7bd484407c7d39c2f8e8d0d1d85b222d9a27 /activerecord/lib | |
parent | 6b3acf151829ee16a946c0d77529d236f115234c (diff) | |
download | rails-099a28bbecb5b6fdabcae261d22c424f67a21601.tar.gz rails-099a28bbecb5b6fdabcae261d22c424f67a21601.tar.bz2 rails-099a28bbecb5b6fdabcae261d22c424f67a21601.zip |
Revert "Delegate `uniq` to `records`"
This reverts commit cf4f05a7d4a2051cf3593bc7c3a6a216e74e797a.
Since Rails 6 requires Ruby 2.4.1+.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/delegation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb index 4863befec8..4b16b49cdf 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -38,7 +38,7 @@ module ActiveRecord # may vary depending on the klass of a relation, so we create a subclass of Relation # for each different klass, and the delegations are compiled into that subclass only. - delegate :to_xml, :encode_with, :length, :each, :uniq, :join, + delegate :to_xml, :encode_with, :length, :each, :join, :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of, :to_sentence, :to_formatted_s, :as_json, :shuffle, :split, :slice, :index, :rindex, to: :records |