We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12392dd commit 26613a7Copy full SHA for 26613a7
app/controllers/uploads_controller.rb
@@ -6,8 +6,7 @@ class UploadsController < ApplicationController
6
rescue_from CanCan::AccessDenied, with: :log_and_raise_not_found_exception
7
8
MODELS_OVERRIDES = {
9
- "operator_document_file" => "document_file",
10
- "documents" => "uploaded_document"
+ "operator_document_file" => "document_file"
11
}.freeze
12
13
def download
app/uploaders/document_uploader.rb
@@ -1,10 +1,6 @@
1
# frozen_string_literal: true
2
3
class DocumentUploader < ApplicationUploader
4
- def store_dir
5
- "uploads/documents/#{model.id}"
- end
-
def extension_allowlist
%w[pdf doc docx txt csv xml jpg jpeg png exif tiff bmp]
end
0 commit comments