lib/effective_assets.rb in effective_assets-1.2.4 vs lib/effective_assets.rb in effective_assets-1.2.5
- old
+ new
@@ -47,10 +47,10 @@
CarrierWave.configure do |config|
config.fog_credentials = {
:provider => 'AWS',
:aws_access_key_id => EffectiveAssets.aws_access_key_id,
:aws_secret_access_key => EffectiveAssets.aws_secret_access_key,
- :aws_region => EffectiveAssets.aws_region.presence || 'us-east-1'
+ :region => EffectiveAssets.aws_region.presence || 'us-east-1'
}
config.fog_directory = EffectiveAssets.aws_bucket
config.fog_public = EffectiveAssets.aws_acl.to_s.include?('public')
config.fog_attributes = {'Cache-Control'=>'max-age=315576000'}
config.cache_dir = "#{Rails.root}/tmp/uploads" # For heroku