aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-11-13 22:17:37 +0000
committerAndrew White <andrew.white@unboxed.co>2016-11-13 22:17:37 +0000
commit3641cd3f3ded4da8880474128dbdffca027b0010 (patch)
treefc3ff5a6bea7badaa29b1d1f27789a399495ab51 /activesupport
parent8b646041be722f07b5c472df3603511962708d60 (diff)
downloadrails-3641cd3f3ded4da8880474128dbdffca027b0010.tar.gz
rails-3641cd3f3ded4da8880474128dbdffca027b0010.tar.bz2
rails-3641cd3f3ded4da8880474128dbdffca027b0010.zip
Remove deprecated namespaced_key
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/cache.rb8
-rw-r--r--activesupport/test/caching_test.rb6
2 files changed, 0 insertions, 14 deletions
diff --git a/activesupport/lib/active_support/cache.rb b/activesupport/lib/active_support/cache.rb
index 02218b8eaa..8f0a954882 100644
--- a/activesupport/lib/active_support/cache.rb
+++ b/activesupport/lib/active_support/cache.rb
@@ -549,14 +549,6 @@ module ActiveSupport
key
end
- def namespaced_key(*args)
- ActiveSupport::Deprecation.warn(<<-MESSAGE.strip_heredoc)
- `namespaced_key` is deprecated and will be removed from Rails 5.1.
- Please use `normalize_key` which will return a fully resolved key.
- MESSAGE
- normalize_key(*args)
- end
-
def instrument(operation, key, options = nil)
log { "Cache #{operation}: #{normalize_key(key, options)}#{options.blank? ? "" : " (#{options.inspect})"}" }
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index 4022154eed..551235e9e8 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -566,12 +566,6 @@ module CacheStoreBehavior
ensure
ActiveSupport::Notifications.unsubscribe "cache_read.active_support"
end
-
- def test_can_call_deprecated_namesaced_key
- assert_deprecated "`namespaced_key` is deprecated" do
- @cache.send(:namespaced_key, 111, {})
- end
- end
end
# https://rails.lighthouseapp.com/projects/8994/tickets/6225-memcachestore-cant-deal-with-umlauts-and-special-characters