diff options
Diffstat (limited to 'lib/active_storage/service/disk_service.rb')
-rw-r--r-- | lib/active_storage/service/disk_service.rb | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/active_storage/service/disk_service.rb b/lib/active_storage/service/disk_service.rb index 7981226a1e..98e0f5eb7f 100644 --- a/lib/active_storage/service/disk_service.rb +++ b/lib/active_storage/service/disk_service.rb @@ -36,7 +36,6 @@ class ActiveStorage::Service::DiskService < ActiveStorage::Service File.exist? path_for(key) end - def url(key, expires_in:, disposition:, filename:) verified_key_with_expiration = ActiveStorage::VerifiedKeyWithExpiration.encode(key, expires_in: expires_in) @@ -47,15 +46,6 @@ class ActiveStorage::Service::DiskService < ActiveStorage::Service end end - def byte_size(key) - File.size path_for(key) - end - - def checksum(key) - Digest::MD5.file(path_for(key)).hexdigest - end - - private def path_for(key) File.join root, folder_for(key), key |