mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Helper methods are private
This commit is contained in:
parent
894e1e3183
commit
cd4c2a4d8e
1 changed files with 5 additions and 4 deletions
|
@ -41,9 +41,10 @@ class ActiveStorage::Service::MirrorServiceTest < ActiveSupport::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def upload(data, to:)
|
||||
SecureRandom.base58(24).tap do |key|
|
||||
@service.upload key, StringIO.new(data)
|
||||
private
|
||||
def upload(data, to:)
|
||||
SecureRandom.base58(24).tap do |key|
|
||||
@service.upload key, StringIO.new(data), checksum: Digest::MD5.base64digest(data)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue