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

class FaxDocumentUploader < CarrierWave::Uploader::Base
  include CarrierWave::MiniMagick
 
  storage :file
 
  def store_dir
    model.store_dir
  end

  def cache_dir
    '/tmp/gs_fax_uploader'
  end

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