1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2025-02-20 14:54:15 +01:00

(bug) maximum must be a nonnegative Integer

This commit is contained in:
Sylvain 2023-02-20 15:00:35 +01:00
parent c0b465748a
commit adcb6812aa
2 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
- Fix a bug: unable to configure RAILS_LOCALE to fr-CA
- Fix a bug: unable to fix availabilities for events
- Fix a bug: unable to start Fab-manager with message: maximum must be a nonnegative Integer
## v5.7.0 2023 February 17

View File

@ -8,5 +8,5 @@ class SupportingDocumentFile < ApplicationRecord
belongs_to :supporting_document_type
belongs_to :user
validates :attachment, file_size: { maximum: ENV.fetch('MAX_SUPPORTING_DOCUMENT_FILE_SIZE', 5.megabytes.to_i) }
validates :attachment, file_size: { maximum: ENV.fetch('MAX_SUPPORTING_DOCUMENT_FILE_SIZE', 5.megabytes).to_i }
end