diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-19 23:01:24 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-04-19 23:10:53 +0900 |
commit | f656bb301a43fe441af0039e4fafe40a7faa62f8 (patch) | |
tree | abdaeb1f903ae9330b46844a537bf2c211d922c2 /activerecord/test/cases | |
parent | 10da0a27512e108a5cde3eeba774b01c15f6c43a (diff) | |
download | rails-f656bb301a43fe441af0039e4fafe40a7faa62f8.tar.gz rails-f656bb301a43fe441af0039e4fafe40a7faa62f8.tar.bz2 rails-f656bb301a43fe441af0039e4fafe40a7faa62f8.zip |
Deprecate `collection_cache_key` which is private API
The `collection_cache_key` is private API for a long time, but I've
maintained it in #35848 since it is mentioned in the doc
(https://github.com/rails/rails/pull/35848#discussion_r272011475).
The doc has removed at 1da9a7e4, so there is no longer a reason to
maintain that private API.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/collection_cache_key_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/collection_cache_key_test.rb b/activerecord/test/cases/collection_cache_key_test.rb index f07f3c42e6..f01bc0d7f1 100644 --- a/activerecord/test/cases/collection_cache_key_test.rb +++ b/activerecord/test/cases/collection_cache_key_test.rb @@ -13,7 +13,9 @@ module ActiveRecord fixtures :developers, :projects, :developers_projects, :topics, :comments, :posts test "collection_cache_key on model" do - assert_match(/\Adevelopers\/query-(\h+)-(\d+)-(\d+)\z/, Developer.collection_cache_key) + assert_deprecated do + assert_match(/\Adevelopers\/query-(\h+)-(\d+)-(\d+)\z/, Developer.collection_cache_key) + end end test "cache_key for relation" do |