Skip to content

Commit

Permalink
Fix usage of bold text helper
Browse files Browse the repository at this point in the history
  • Loading branch information
2called-chaos committed Feb 7, 2022
1 parent 12a517e commit e3eb479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pry-rails/commands/find_route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e3eb479

Please sign in to comment.