Commit 6a73b76c authored by Ciro Santilli's avatar Ciro Santilli

Remove param[:project_id] at admin controller

The route never passes that parameter to the helpers.
parent 3880bb61
...@@ -31,9 +31,7 @@ class Admin::ProjectsController < Admin::ApplicationController ...@@ -31,9 +31,7 @@ class Admin::ProjectsController < Admin::ApplicationController
protected protected
def project def project
id = params[:project_id] || params[:id] @project = Project.find_with_namespace(params[:id])
@project = Project.find_with_namespace(id)
@project || render_404 @project || render_404
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment