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:
parent
c0b465748a
commit
adcb6812aa
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user