diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:16:54 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:16:54 +0000 |
commit | 8b646041be722f07b5c472df3603511962708d60 (patch) | |
tree | a6eb4ec7c06dd5312413b1e4900f9f1eb27932dc /activesupport | |
parent | efdb785d7fb791f9968242efe96fe3ae4538b38e (diff) | |
download | rails-8b646041be722f07b5c472df3603511962708d60.tar.gz rails-8b646041be722f07b5c472df3603511962708d60.tar.bz2 rails-8b646041be722f07b5c472df3603511962708d60.zip |
Remove deprecated set_cache_value
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/cache/strategy/local_cache.rb | 8 | ||||
-rw-r--r-- | activesupport/test/caching_test.rb | 9 |
2 files changed, 0 insertions, 17 deletions
diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index f41cc23eb0..7652cae201 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -124,14 +124,6 @@ module ActiveSupport super end - def set_cache_value(value, name, amount, options) # :nodoc: - ActiveSupport::Deprecation.warn(<<-MESSAGE.strip_heredoc) - `set_cache_value` is deprecated and will be removed from Rails 5.1. - Please use `write_cache_value` instead. - MESSAGE - write_cache_value name, value, options - end - def write_cache_value(name, value, options) # :nodoc: name = normalize_key(name, options) cache = local_cache diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index e2864012d8..4022154eed 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -747,15 +747,6 @@ module LocalCacheBehavior app = @cache.middleware.new(app) app.call({}) end - - def test_can_call_deprecated_set_cache_value - @cache.with_local_cache do - assert_deprecated "`set_cache_value` is deprecated" do - @cache.send(:set_cache_value, 1, "foo", :ignored, {}) - end - assert_equal 1, @cache.read("foo") - end - end end module AutoloadingCacheBehavior |