diff --git a/CHANGELOG.md b/CHANGELOG.md index 3752670f6..85870585c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/models/supporting_document_file.rb b/app/models/supporting_document_file.rb index 36e848064..77b2132eb 100644 --- a/app/models/supporting_document_file.rb +++ b/app/models/supporting_document_file.rb @@ -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