diff options
author | schneems <richard.schneeman+foo@gmail.com> | 2018-09-20 20:40:31 -0500 |
---|---|---|
committer | schneems <richard.schneeman+foo@gmail.com> | 2018-09-20 20:40:31 -0500 |
commit | 3424bd83d699bb996aa27d85b970e484d37e3485 (patch) | |
tree | dcef5ad547631c8680763cd57479259d2ddc75ed /activesupport/lib/active_support/cache/file_store.rb | |
parent | 135d3e15b72b9820212027b057df8980140a947b (diff) | |
download | rails-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 'activesupport/lib/active_support/cache/file_store.rb')
-rw-r--r-- | activesupport/lib/active_support/cache/file_store.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activesupport/lib/active_support/cache/file_store.rb b/activesupport/lib/active_support/cache/file_store.rb index b17f0a4a4a..53a2b07536 100644 --- a/activesupport/lib/active_support/cache/file_store.rb +++ b/activesupport/lib/active_support/cache/file_store.rb @@ -26,10 +26,8 @@ module ActiveSupport @cache_path = cache_path.to_s end - # Advertise that this cache store can be used - # with "recyclable cache keys" otherwise known - # as cache versioning. - def supports_in_cache_versioning? + # Advertise cache versioning support. + def self.supports_cache_versioning? true end |