CarrierWave.configure do |config|
  config.fog_credentials = {
    :provider               => 'AWS',
    :aws_access_key_id      => ENV['S3_KEY'],
    :aws_secret_access_key  => ENV['S3_SECRET'],
  }
  if Rails.env.production?
    config.fog_directory  = 'thevoxe'
  else
    config.fog_directory  = 'thevoxe-staging'
  end
end

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  = 'thevoxe'
end

Use the same bucket for both production staging mode
Use the same bucket for both production staging mode
