summaryrefslogtreecommitdiff
path: root/app/uploaders/generic_file_uploader.rb
blob: 4a226ed8f94fbc4e852d1abceb81ab38494c03af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# encoding: utf-8

class GenericFileUploader < CarrierWave::Uploader::Base
 
  storage :file
 
  def store_dir
    model.store_dir
  end

  def cache_dir
    '/tmp/generic_file_uploader'
  end

  def extension_white_list
    %w(pdf ps jpg jpeg gif png tif tiff wav mp3)
  end
end