instance method
file_path_key
Ruby on Rails 7.2.3
Since v3.0.20 PrivateSignature
file_path_key(path)
Translate a file path into a key.
Parameters
-
pathreq
Source
# File activesupport/lib/active_support/cache/file_store.rb, line 179
def file_path_key(path)
fname = path[cache_path.to_s.size..-1].split(File::SEPARATOR, 4).last.delete(File::SEPARATOR)
URI.decode_www_form_component(fname, Encoding::UTF_8)
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 179
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore