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:
parent
a580d731ac
commit
0b2b1334fb
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user