Skip to content

Instantly share code, notes, and snippets.

@chadoh
Created July 1, 2011 12:38
Show Gist options
  • Save chadoh/1058456 to your computer and use it in GitHub Desktop.
Save chadoh/1058456 to your computer and use it in GitHub Desktop.
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => ENV['S3_KEY'],
:aws_secret_access_key => ENV['S3_SECRET']
}
config.fog_directory = 'superfuntimes'
config.fog_host = 's3.amazonaws.com' # optional, defaults to nil
config.fog_public = true # optional, defaults to true
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'} # optional, defaults to {}
end
if Rails.env.test? or Rails.env.cucumber?
CarrierWave.configure do |config|
config.storage = :file
config.enable_processing = false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment