instance method
make_path_for
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
make_path_for(key)
No documentation comment.
Parameters
-
keyreq
Source
# File activestorage/lib/active_storage/service/disk_service.rb, line 152
def make_path_for(key)
path_for(key).tap { |path| FileUtils.mkdir_p File.dirname(path) }
end
Defined in activestorage/lib/active_storage/service/disk_service.rb line 152
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::DiskService