aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-03-10 23:32:05 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-03-10 23:32:05 +0900
commit4368dba5eea2fe5e06dabf26b62e20ccee274644 (patch)
tree90490e9e43c757e4cff16b821bf9cfe7c87408fc /activerecord/test
parentc8c1460f7a97c15dff641a30e63914991d407595 (diff)
downloadrails-4368dba5eea2fe5e06dabf26b62e20ccee274644.tar.gz
rails-4368dba5eea2fe5e06dabf26b62e20ccee274644.tar.bz2
rails-4368dba5eea2fe5e06dabf26b62e20ccee274644.zip
Simply delegate `as_json` to `records`
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/relation/delegation_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/relation/delegation_test.rb b/activerecord/test/cases/relation/delegation_test.rb
index 49d4aeafc9..8cb7b82015 100644
--- a/activerecord/test/cases/relation/delegation_test.rb
+++ b/activerecord/test/cases/relation/delegation_test.rb
@@ -33,7 +33,7 @@ module ActiveRecord
:map, :none?, :one?, :partition, :reject, :reverse,
:sample, :second, :sort, :sort_by, :third,
:to_ary, :to_set, :to_xml, :to_yaml, :join,
- :in_groups, :in_groups_of, :to_sentence, :to_formatted_s
+ :in_groups, :in_groups_of, :to_sentence, :to_formatted_s, :as_json
]
ARRAY_DELEGATES.each do |method|