1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

file_size_validator.rb was broken since ruby v3, see https://github.com/rails/rails/issues/41270

This commit is contained in:
Nicolas Florentin 2023-10-18 15:07:07 +02:00
parent a580d731ac
commit 0b2b1334fb
2 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
## next release ## next release
- Fix a bug: fix all failing tasks of rake task file chain.rake - Fix a bug: fix all failing tasks of rake task file chain.rake
- Fix a bug: file_size_validator.rb was broken since ruby v3, see https://github.com/rails/rails/issues/41270
## v6.2.0 2023 October 13 ## v6.2.0 2023 October 13

View File

@ -52,7 +52,7 @@ class FileSizeValidator < ActiveModel::EachValidator
default_message = options[MESSAGES[key]] default_message = options[MESSAGES[key]]
errors_options[:message] ||= default_message if default_message errors_options[:message] ||= default_message if default_message
record.errors.add(attribute, MESSAGES[key], errors_options) record.errors.add(attribute, MESSAGES[key], **errors_options)
end end
end end