Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/file_size_validator.rb')
-rw-r--r--lib/file_size_validator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file_size_validator.rb b/lib/file_size_validator.rb
index e9868732172..ac3210b4e98 100644
--- a/lib/file_size_validator.rb
+++ b/lib/file_size_validator.rb
@@ -62,7 +62,7 @@ class FileSizeValidator < ActiveModel::EachValidator
default_message = options[MESSAGES[key]]
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