Merge pull request #5962 from betagouv/fix-invalid-proc

fix limit date for notice validation
This commit is contained in:
Paul Chavard 2021-03-05 09:46:32 +01:00 committed by GitHub
commit 5525fc7be8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ class Procedure < ApplicationRecord
"image/jpg",
"image/png",
"text/plain"
], size: { less_than: 20.megabytes }, if: -> { new_record? || created_at > Date.new(2020, 2, 27) }
], size: { less_than: 20.megabytes }, if: -> { new_record? || created_at > Date.new(2020, 2, 28) }
validates :deliberation, content_type: [
"application/msword",