aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/routing/inspector.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/inspector.rb')
-rw-r--r--actionpack/lib/action_dispatch/routing/inspector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb
index c18dc94d4f..178e2074bc 100644
--- a/actionpack/lib/action_dispatch/routing/inspector.rb
+++ b/actionpack/lib/action_dispatch/routing/inspector.rb
@@ -102,9 +102,9 @@ module ActionDispatch
end
def formatted_routes_for_engines
- @engines.map do |name, routes|
+ @engines.flat_map do |name, routes|
["\nRoutes for #{name}:"] + formatted_routes(routes)
- end.flatten
+ end
end
def formatted_routes(routes)