Fix white list cerfa and piece_justificative uploader

This commit is contained in:
Xavier J 2016-03-22 10:20:26 +01:00
parent eeaefdcc79
commit 0d211f4ccb
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ class CerfaUploader < CarrierWave::Uploader::Base
# Add a white list of extensions which are allowed to be uploaded. # Add a white list of extensions which are allowed to be uploaded.
# For images you might use something like this: # For images you might use something like this:
def extension_white_list def extension_white_list
%w(pdf doc docxxls xlsx ppt pptx odt ods odp) %w(pdf doc docx xls xlsx ppt pptx odt ods odp)
end end
# Override the filename of the uploaded files: # Override the filename of the uploaded files:

View file

@ -39,7 +39,7 @@ class PieceJustificativeUploader < CarrierWave::Uploader::Base
# Add a white list of extensions which are allowed to be uploaded. # Add a white list of extensions which are allowed to be uploaded.
# For images you might use something like this: # For images you might use something like this:
def extension_white_list def extension_white_list
%w(pdf doc docxxls xlsx ppt pptx odt ods odp) %w(pdf doc docx xls xlsx ppt pptx odt ods odp)
end end
# Override the filename of the uploaded files: # Override the filename of the uploaded files: