lib/dm-paperclip/storage/s3.rb
# Returns representation of the data of the file assigned to the given
# style, in the format most representative of the current storage.
Returns representation of the data of the file assigned to the given
style, in the format most representative of the current storage.
Returns representation of the data of the file assigned to the given style in the format most representative of the current storage .
def to_file style = default_style
        return @queued_for_write[style] if @queued_for_write[style]
        filename = path(style)
        extname  = File.extname(filename)
        basename = File.basename(filename, extname)
        file = Tempfile.new([basename, extname])
        file.binmode
        s3_download(filename,file)
        file.rewind
        return file
      end
def to_file style = default_style return @queued_for_write [ style ] if @queued_for_write [ style ] filename = path ( style ) extname = File . extname ( filename ) basename = File . basename ( filename , extname ) file = Tempfile . new ( [ basename , extname ] ) file . binmode s3_download ( filename , file ) file . rewind return file end
Returns representation of the data of the file assigned to the given
style, in the format most representative of the current storage.
Returns representation of the data of the file assigned to the given style in the format most representative of the current storage .
style
<not_specific>
default_style
<not_specific>