aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorschneems <richard.schneeman+foo@gmail.com>2018-09-20 20:40:31 -0500
committerschneems <richard.schneeman+foo@gmail.com>2018-09-20 20:40:31 -0500
commit3424bd83d699bb996aa27d85b970e484d37e3485 (patch)
treedcef5ad547631c8680763cd57479259d2ddc75ed /railties
parent135d3e15b72b9820212027b057df8980140a947b (diff)
downloadrails-3424bd83d699bb996aa27d85b970e484d37e3485.tar.gz
rails-3424bd83d699bb996aa27d85b970e484d37e3485.tar.bz2
rails-3424bd83d699bb996aa27d85b970e484d37e3485.zip
Switch to supports_cache_versioning? check to a class method
- Moving the `supports_cache_versioning?` check to a class method. - Shorten the method doc. - Expand on the error message.
Diffstat (limited to 'railties')
-rw-r--r--railties/CHANGELOG.md4
-rw-r--r--railties/test/application/configuration_test.rb2
2 files changed, 4 insertions, 2 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index da4beedecf..4342cf6968 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,5 +1,7 @@
* Raise an error when "recyclable cache keys" are being used by a cache store
- that does not explicitly support it.
+ that does not explicitly support it. Custom cache keys that do support this feature
+ can bypass this error by implementing the `supports_cache_versioning?` method on their
+ class and returning a truthy value.
*Richard Schneeman*
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb
index 386b4f76e6..8c10413525 100644
--- a/railties/test/application/configuration_test.rb
+++ b/railties/test/application/configuration_test.rb
@@ -133,7 +133,7 @@ module ApplicationTests
app "production"
end
- assert_match(/You're using a cache store/, error.message)
+ assert_match(/You're using a cache/, error.message)
end
test "a renders exception on pending migration" do