lib/pry-rails/commands/find_route.rb in pry-rails-0.3.10 vs lib/pry-rails/commands/find_route.rb in pry-rails-0.3.11
- old
+ new
@@ -50,14 +50,14 @@
def show_routes(&block)
all_routes = routes.select(&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
stagger_output result
else