instance method
file_path_key
Ruby on Rails 3.0.20
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 156
def file_path_key(path)
fname = path[cache_path.size, path.size].split(File::SEPARATOR, 4).last
Rack::Utils.unescape(fname)
end
Defined in activesupport/lib/active_support/cache/file_store.rb line 156
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::FileStore