aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2017-08-31 15:49:47 +0930
committerGitHub <noreply@github.com>2017-08-31 15:49:47 +0930
commit7721f23e86782baa758c70dd81de80aa0857ca2c (patch)
tree4a04298847c4c94bcb353080c977691e5bff7840 /activerecord/test
parentd81a2ede5916e1d1c0459b5981ba760d423327a2 (diff)
parent39805720361f080a63c1febdbc62fe8246e39ec1 (diff)
downloadrails-7721f23e86782baa758c70dd81de80aa0857ca2c.tar.gz
rails-7721f23e86782baa758c70dd81de80aa0857ca2c.tar.bz2
rails-7721f23e86782baa758c70dd81de80aa0857ca2c.zip
Merge pull request #30377 from keepcosmos/delegate-missing-methods
Delegate :rindex, :slice, :rotate(missing) to 'records'
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation/delegation_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb
index 04d688ac53..2696d1bb00 100644
--- a/activerecord/test/cases/relation/delegation_test.rb
+++ b/activerecord/test/cases/relation/delegation_test.rb
@@ -10,8 +10,8 @@ module ActiveRecord
:+, :-, :|, :&, :[], :shuffle,
:all?, :collect, :compact, :detect, :each, :each_cons, :each_with_index,
:exclude?, :find_all, :flat_map, :group_by, :include?, :length,
- :map, :none?, :one?, :partition, :reject, :reverse,
- :sample, :second, :sort, :sort_by, :third,
+ :map, :none?, :one?, :partition, :reject, :reverse, :rotate,
+ :sample, :second, :sort, :sort_by, :slice, :third, :index, :rindex,
:to_ary, :to_set, :to_xml, :to_yaml, :join,
:in_groups, :in_groups_of, :to_sentence, :to_formatted_s, :as_json
]