diff --git a/lib/routes_upgrader.rb b/lib/routes_upgrader.rb index a3aa263..a47f024 100644 --- a/lib/routes_upgrader.rb +++ b/lib/routes_upgrader.rb @@ -327,7 +327,7 @@ module Rails r.to_route_code end.join("\n") - "#{app_name.classify}::Application.routes.draw do\n#{@new_code}\nend\n" + "#{app_name.underscore.classify}::Application.routes.draw do\n#{@new_code}\nend\n" end private