commit
b927ef727c
1 changed files with 11 additions and 5 deletions
|
@ -191,20 +191,26 @@ class Procedure < ApplicationRecord
|
||||||
validates :notice, content_type: [
|
validates :notice, content_type: [
|
||||||
"application/msword",
|
"application/msword",
|
||||||
"application/pdf",
|
"application/pdf",
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
||||||
"application/vnd.ms-powerpoint",
|
"application/vnd.ms-powerpoint",
|
||||||
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
|
||||||
"application/vnd.oasis.opendocument.text",
|
|
||||||
"application/vnd.oasis.opendocument.presentation",
|
"application/vnd.oasis.opendocument.presentation",
|
||||||
|
"application/vnd.oasis.opendocument.text",
|
||||||
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
||||||
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
|
"image/jpeg",
|
||||||
|
"image/jpg",
|
||||||
|
"image/png",
|
||||||
"text/plain"
|
"text/plain"
|
||||||
], size: { less_than: 20.megabytes }
|
], size: { less_than: 20.megabytes }
|
||||||
|
|
||||||
validates :deliberation, content_type: [
|
validates :deliberation, content_type: [
|
||||||
"application/msword",
|
"application/msword",
|
||||||
"application/pdf",
|
"application/pdf",
|
||||||
|
"application/vnd.oasis.opendocument.text",
|
||||||
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
"text/plain",
|
"image/jpeg",
|
||||||
"application/vnd.oasis.opendocument.text"
|
"image/jpg",
|
||||||
|
"image/png",
|
||||||
|
"text/plain"
|
||||||
], size: { less_than: 20.megabytes }
|
], size: { less_than: 20.megabytes }
|
||||||
|
|
||||||
validates :logo, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 5.megabytes }
|
validates :logo, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 5.megabytes }
|
||||||
|
|
Loading…
Reference in a new issue