Fix: consider "id" param too

This commit is contained in:
Jorge Manrubia
2025-05-06 12:17:06 +02:00
parent a8d4cbcff0
commit 01802964c5
+1 -1
View File
@@ -26,6 +26,6 @@ class Command::Parser::Context
route = Rails.application.routes.recognize_path(uri.path)
@controller = route[:controller]
@action = route[:action]
@params = Rack::Utils.parse_nested_query(uri.query)
@params = Rack::Utils.parse_nested_query(uri.query).merge(route.except(:controller, :action))
end
end