engine/app/uploaders/theme_uploader.rb

15 lines
215 B
Ruby

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