diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-03-12 17:00:04 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-12 17:00:04 +0000 |
commit | fa9b4c4e43b83266876b0a86978be232fc74ec3a (patch) | |
tree | 05358cd5b3571c970966df63cd67b8677976b7dd /activerecord/test/cases | |
parent | 21a44916ae39cb622c11c3e206a74925d114cfa8 (diff) | |
parent | 4368dba5eea2fe5e06dabf26b62e20ccee274644 (diff) | |
download | rails-fa9b4c4e43b83266876b0a86978be232fc74ec3a.tar.gz rails-fa9b4c4e43b83266876b0a86978be232fc74ec3a.tar.bz2 rails-fa9b4c4e43b83266876b0a86978be232fc74ec3a.zip |
Merge pull request #28372 from kamipo/delegate_as_json
Simply delegate `as_json` to `records`
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relation/delegation_test.rb | 2 |
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| |