CarrierWave.configure do |config|
  config.storage :fog

  config.fog_credentials = {
    :provider               => 'AWS',
    :aws_access_key_id      => 'AKIAJM7D4ASWWMB6TOTA',
    :aws_secret_access_key  => ENV['S3_SECRET']
  }

  config.cache_dir = "#{Rails.root}/tmp/uploads"

  if Rails.env.production?
    config.fog_directory  = 'brigade-production'
  elsif Rails.env.test?
    config.fog_credentials = {
      :provider               => 'AWS',
      :aws_access_key_id      => 'AKIAJM7D4ASWWMB6TOTA',
      :aws_secret_access_key  => 'abc123'
    }
    config.fog_directory  = 'brigade-test'
  else
    config.fog_directory  = 'brigade-dev'
  end
end

CarrierWave.configure do |config|
  config.storage :fog

  config.fog_credentials = {
    :provider               => 'AWS',
    :aws_access_key_id      => 'AKIAJM7D4ASWWMB6TOTA',
    :aws_secret_access_key  => ENV['S3_SECRET']
  }

  config.cache_dir = "#{Rails.root}/tmp/uploads"

  if Rails.env.production?
    config.fog_directory  = 'brigade-production'
  elsif Rails.env.test?
    config.fog_directory  = 'brigade-test'
  else
    config.fog_directory  = 'brigade-dev'
  end
end

Revert "Added aws_secret_acces_key on test for travis"
Revert "Added aws_secret_acces_key on test for travis"

This reverts commit 5918d24986c426b024bd7e7b9c4ba3ef5494210d.
