engine/app/uploaders/theme_uploader.rb
2011-04-07 01:34:36 +02:00

19 lines
310 B
Ruby

class ThemeUploader < ::CarrierWave::Uploader::Base
def store_dir
if Locomotive.config.delayed_job
"sites/#{model.id}/tmp/themes"
else
"#{Rails.root}/tmp/themes"
end
end
# def cache_dir
# "#{Rails.root}/tmp/uploads"
# end
def extension_white_list
%w(zip)
end
end