Module: S3FileCacheDownload::Helper

Defined in:
lib/s3_file_cache_download.rb

Instance Method Summary collapse

Instance Method Details

#send_s3_file(bucket_name, path, option = {}) ⇒ Object



41
42
43
44
45
# File 'lib/s3_file_cache_download.rb', line 41

def send_s3_file(bucket_name, path, option = {})
  s3_file_cache = S3FileCache.find_s3_cache_file_or_create!(path, bucket_name)

  send_file s3_file_cache.place, { filename: s3_file_cache.filename }.merge(option)
end