diff options
Diffstat (limited to 'lib/active_storage/service')
-rw-r--r-- | lib/active_storage/service/disk_service.rb | 1 | ||||
-rw-r--r-- | lib/active_storage/service/s3_service.rb | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/active_storage/service/disk_service.rb b/lib/active_storage/service/disk_service.rb index 98e0f5eb7f..668a837663 100644 --- a/lib/active_storage/service/disk_service.rb +++ b/lib/active_storage/service/disk_service.rb @@ -1,5 +1,6 @@ require "fileutils" require "pathname" +require "active_support/core_ext/numeric/bytes" class ActiveStorage::Service::DiskService < ActiveStorage::Service attr_reader :root diff --git a/lib/active_storage/service/s3_service.rb b/lib/active_storage/service/s3_service.rb index cb08893c0e..746a636912 100644 --- a/lib/active_storage/service/s3_service.rb +++ b/lib/active_storage/service/s3_service.rb @@ -1,4 +1,5 @@ require "aws-sdk" +require "active_support/core_ext/numeric/bytes" class ActiveStorage::Service::S3Service < ActiveStorage::Service attr_reader :client, :bucket |