From e3eb47947a9abd8025e369d2529a83182790f323 Mon Sep 17 00:00:00 2001 From: Sven Pachnit Date: Mon, 7 Feb 2022 16:41:28 +0100 Subject: [PATCH] Fix usage of bold text helper --- lib/pry-rails/commands/find_route.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pry-rails/commands/find_route.rb b/lib/pry-rails/commands/find_route.rb index 0c6de70..8dbfacf 100644 --- a/lib/pry-rails/commands/find_route.rb +++ b/lib/pry-rails/commands/find_route.rb @@ -52,11 +52,11 @@ def show_routes(&block) if all_routes.any? grouped_routes = all_routes.group_by { |route| route.defaults[:controller] } result = grouped_routes.each_with_object("") do |(controller, routes), res| - res << "Routes for " + text.bold(controller.to_s.camelize + "Controller") + "\n" + res << "Routes for " + bold(controller.to_s.camelize + "Controller") + "\n" res << "--\n" routes.each do |route| spec = route.path.is_a?(String) ? route.path : route.path.spec - res << "#{route.defaults[:action]} #{text.bold(verb_for(route))} #{spec} #{route_helper(route.name)}" + "\n" + res << "#{route.defaults[:action]} #{bold(verb_for(route))} #{spec} #{route_helper(route.name)}" + "\n" end res << "\n" end