Class: AWS::S3::S3Object

Inherits:
Object
  • Object
show all
Defined in:
lib/rixius/s3.rb

Class Method Summary collapse

Class Method Details

.rixius_original_storeObject



6
# File 'lib/rixius/s3.rb', line 6

alias :rixius_original_store :store

.store(key, data, bucket = nil, options = {}) ⇒ Object



7
8
9
10
11
12
# File 'lib/rixius/s3.rb', line 7

def store key, data, bucket = nil, options = {}
  if options['Cache-Control'].blank?
    options['Cache-Control'] = 'max-age=315360000'
  end
  rixius_original_store key, data, bucket, options
end