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 'app/validators/addressable_url_validator.rb')
-rw-r--r--app/validators/addressable_url_validator.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/validators/addressable_url_validator.rb b/app/validators/addressable_url_validator.rb
index 99f503c3f06..9fa99903e36 100644
--- a/app/validators/addressable_url_validator.rb
+++ b/app/validators/addressable_url_validator.rb
@@ -95,9 +95,9 @@ class AddressableUrlValidator < ActiveModel::EachValidator
end
def current_options
- options.map do |option, value|
- [option, value.is_a?(Proc) ? value.call(record) : value]
- end.to_h
+ options.transform_values do |value|
+ value.is_a?(Proc) ? value.call(record) : value
+ end
end
def blocker_args