summaryrefslogtreecommitdiff
path: root/app/uploaders/fax_document_uploader.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/uploaders/fax_document_uploader.rb')
-rw-r--r--app/uploaders/fax_document_uploader.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/uploaders/fax_document_uploader.rb b/app/uploaders/fax_document_uploader.rb
new file mode 100644
index 0000000..bfb7e07
--- /dev/null
+++ b/app/uploaders/fax_document_uploader.rb
@@ -0,0 +1,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