Change max-size for CERFA and PJ
This commit is contained in:
parent
97c2be07ea
commit
8cc6229606
2 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue