From 8cc6229606ae5f623eaec57c7b87029222969d19 Mon Sep 17 00:00:00 2001 From: Xavier J Date: Fri, 25 Nov 2016 12:07:01 +0100 Subject: [PATCH] Change max-size for CERFA and PJ --- app/models/cerfa.rb | 2 +- app/models/piece_justificative.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/cerfa.rb b/app/models/cerfa.rb index c9ea2786d..0022ad244 100644 --- a/app/models/cerfa.rb +++ b/app/models/cerfa.rb @@ -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? diff --git a/app/models/piece_justificative.rb b/app/models/piece_justificative.rb index 9408e4899..e1a0df9c8 100644 --- a/app/models/piece_justificative.rb +++ b/app/models/piece_justificative.rb @@ -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?