specify fog storage

master
Espen Antonsen 2011-05-08 20:59:52 +08:00
parent 5a3913e936
commit 3a351232c4
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class FileUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
# Choose what kind of storage to use for this uploader
if ENV['S3_KEY']
storage :s3
storage :fog
def cache_dir
"#{Rails.root.to_s}/tmp/uploads" if ENV['HEROKU'] == 'true'