diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-03-20 11:50:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 11:50:18 -0400 |
commit | 30fd30e7ece79c2f4cbd6c0b6cd74471c652423e (patch) | |
tree | 3ec793f6f08743afb007a82cf3a0fa7cf6755da4 /activerecord/lib | |
parent | d4c3db0d27e68e6c2c43b7aaa4e7c49cb98bab27 (diff) | |
parent | 59db5f22927135639d1fd77ea496ef1fb1679429 (diff) | |
download | rails-30fd30e7ece79c2f4cbd6c0b6cd74471c652423e.tar.gz rails-30fd30e7ece79c2f4cbd6c0b6cd74471c652423e.tar.bz2 rails-30fd30e7ece79c2f4cbd6c0b6cd74471c652423e.zip |
Merge pull request #28473 from kamipo/delegate_uniq_to_records
Delegate `uniq` to `records`
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 7b704c7e66..50378f9d99 100644 --- a/activerecord/lib/active_record/relation/delegation.rb +++ b/activerecord/lib/active_record/relation/delegation.rb @@ -36,7 +36,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, :collect, :uniq, :each, :all?, :include?, :to_ary, :join, + delegate :to_xml, :encode_with, :length, :each, :uniq, :to_ary, :join, :[], :&, :|, :+, :-, :sample, :reverse, :compact, :in_groups, :in_groups_of, :to_sentence, :to_formatted_s, :as_json, :shuffle, :split, :index, to: :records |