diff options
author | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:15:45 +0000 |
---|---|---|
committer | Andrew White <andrew.white@unboxed.co> | 2016-11-13 22:15:45 +0000 |
commit | efdb785d7fb791f9968242efe96fe3ae4538b38e (patch) | |
tree | 74e307a689e83895fb23c089432ca198fcb2cb2e /activesupport | |
parent | 08260c2373db50e2bf0e919282f8921542acb854 (diff) | |
download | rails-efdb785d7fb791f9968242efe96fe3ae4538b38e.tar.gz rails-efdb785d7fb791f9968242efe96fe3ae4538b38e.tar.bz2 rails-efdb785d7fb791f9968242efe96fe3ae4538b38e.zip |
Remove deprecated escape_key
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/cache/mem_cache_store.rb | 8 | ||||
-rw-r--r-- | activesupport/test/caching_test.rb | 6 |
2 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/cache/mem_cache_store.rb b/activesupport/lib/active_support/cache/mem_cache_store.rb index 00f4480308..15f82317bd 100644 --- a/activesupport/lib/active_support/cache/mem_cache_store.rb +++ b/activesupport/lib/active_support/cache/mem_cache_store.rb @@ -181,14 +181,6 @@ module ActiveSupport key end - def escape_key(key) - ActiveSupport::Deprecation.warn(<<-MESSAGE.strip_heredoc) - `escape_key` is deprecated and will be removed from Rails 5.1. - Please use `normalize_key` which will return a fully resolved key or nothing. - MESSAGE - key - end - def deserialize_entry(raw_value) if raw_value entry = Marshal.load(raw_value) rescue raw_value diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 02a9e5eff5..e2864012d8 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -1092,12 +1092,6 @@ class MemCacheStoreTest < ActiveSupport::TestCase value << "bingo" assert_not_equal value, @cache.read("foo") end - - def test_can_call_deprecated_escape_key - assert_deprecated "`escape_key` is deprecated" do - assert_equal 111, @cache.send(:escape_key, 111) - end - end end class NullStoreTest < ActiveSupport::TestCase |