Up max size for cerfa and PJ

This commit is contained in:
Xavier J 2016-10-27 17:00:59 +02:00
parent 88233b716c
commit a73339b12a
3 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ class PieceJustificative < ActiveRecord::Base
alias_attribute :type, :type_de_piece_justificative_id
mount_uploader :content, PieceJustificativeUploader
validates :content, :file_size => {:maximum => 3.megabytes}
validates :content, :file_size => {:maximum => 6.megabytes}
validates :content, presence: true, allow_blank: false, allow_nil: false
def empty?