aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation/delegation.rb
diff options
context:
space:
mode:
authorkeepcosmos <keepcosmos@gmail.com>2017-08-23 17:42:21 +0900
committerkeepcosmos <keepcosmos@gmail.com>2017-08-24 09:54:24 +0900
commit39805720361f080a63c1febdbc62fe8246e39ec1 (patch)
tree7eff7b39effc754e78b5436532507dd12f25ff4a /activerecord/lib/active_record/relation/delegation.rb
parent05d062a25bbf4b4e3f5a5e6ec5e4affcaccb4d57 (diff)
downloadrails-39805720361f080a63c1febdbc62fe8246e39ec1.tar.gz
rails-39805720361f080a63c1febdbc62fe8246e39ec1.tar.bz2
rails-39805720361f080a63c1febdbc62fe8246e39ec1.zip
Delegate :rindex, :slice, :rotate to 'records'
Diffstat (limited to 'activerecord/lib/active_record/relation/delegation.rb')
-rw-r--r--activerecord/lib/active_record/relation/delegation.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/relation/delegation.rb b/activerecord/lib/active_record/relation/delegation.rb
index 4793f2a49b..76a722ff6c 100644
--- a/activerecord/lib/active_record/relation/delegation.rb
+++ b/activerecord/lib/active_record/relation/delegation.rb
@@ -39,9 +39,9 @@ module ActiveRecord
# for each different klass, and the delegations are compiled into that subclass only.
delegate :to_xml, :encode_with, :length, :each, :uniq, :to_ary, :join,
- :[], :&, :|, :+, :-, :sample, :reverse, :compact, :in_groups, :in_groups_of,
+ :[], :&, :|, :+, :-, :sample, :reverse, :rotate, :compact, :in_groups, :in_groups_of,
:to_sentence, :to_formatted_s, :as_json,
- :shuffle, :split, :index, to: :records
+ :shuffle, :split, :slice, :index, :rindex, to: :records
delegate :table_name, :quoted_table_name, :primary_key, :quoted_primary_key,
:connection, :columns_hash, to: :klass