summaryrefslogtreecommitdiff
path: root/app/uploaders
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-19 13:16:12 +0100
committerspag <spag@golwen.net>2013-02-19 13:16:12 +0100
commit2b3892ac24bb61c4814e0afe141bf53765fb1e4b (patch)
tree70baf3eca28ec49fa6edb54dae74122ffb77930f /app/uploaders
parentde845aa642e22b0ae08c5ce991bcdef9b656e079 (diff)
fax storage directory
Diffstat (limited to 'app/uploaders')
-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