1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove deprecated key_file_path

This commit is contained in:
Andrew White 2016-11-13 22:14:31 +00:00
parent 5b2ea20f56
commit 08260c2373
2 changed files with 0 additions and 14 deletions

View file

@ -138,14 +138,6 @@ module ActiveSupport
File.join(cache_path, DIR_FORMATTER % dir_1, DIR_FORMATTER % dir_2, *fname_paths)
end
def key_file_path(key)
ActiveSupport::Deprecation.warn(<<-MESSAGE.strip_heredoc)
`key_file_path` 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
# Translate a file path into a key.
def file_path_key(path)
fname = path[cache_path.to_s.size..-1].split(File::SEPARATOR, 4).last

View file

@ -918,12 +918,6 @@ class FileStoreTest < ActiveSupport::TestCase
@cache.write(1, nil)
assert_equal false, @cache.write(1, "aaaaaaaaaa", unless_exist: true)
end
def test_can_call_deprecated_key_file_path
assert_deprecated "`key_file_path` is deprecated" do
assert_equal 111, @cache.send(:key_file_path, 111)
end
end
end
class MemoryStoreTest < ActiveSupport::TestCase