Change max-size for CERFA and PJ

This commit is contained in:
Xavier J 2016-11-25 12:07:01 +01:00
parent 97c2be07ea
commit 8cc6229606
2 changed files with 2 additions and 2 deletions

View file

@ -3,7 +3,7 @@ class Cerfa < ActiveRecord::Base
belongs_to :user
mount_uploader :content, CerfaUploader
validates :content, :file_size => {:maximum => 6.megabytes}
validates :content, :file_size => {:maximum => 20.megabytes}
def empty?
content.blank?

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 => 6.megabytes}
validates :content, :file_size => {:maximum => 20.megabytes}
validates :content, presence: true, allow_blank: false, allow_nil: false
def empty?