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 'config/initializers/action_dispatch_journey_formatter.rb')
-rw-r--r--config/initializers/action_dispatch_journey_formatter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/initializers/action_dispatch_journey_formatter.rb b/config/initializers/action_dispatch_journey_formatter.rb
index 93cf407c73c..108fb2e5012 100644
--- a/config/initializers/action_dispatch_journey_formatter.rb
+++ b/config/initializers/action_dispatch_journey_formatter.rb
@@ -9,8 +9,8 @@ module ActionDispatch
module Path
class Pattern
def requirements_for_missing_keys_check
- @requirements_for_missing_keys_check ||= requirements.each_with_object({}) do |(key, regex), hash|
- hash[key] = /\A#{regex}\Z/
+ @requirements_for_missing_keys_check ||= requirements.transform_values do |regex|
+ /\A#{regex}\Z/
end
end
end