diff options
author | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 23:02:19 +0200 |
---|---|---|
committer | Ciro Santilli <ciro.santilli@gmail.com> | 2014-10-19 23:02:19 +0200 |
commit | 6a73b76c5f2e1559ba771e5910852ac4e1283b58 (patch) | |
tree | c9c45702d10f2e79eaac4763601f2b6d5f26d212 /app/controllers/admin | |
parent | 3880bb61760ef1f69b0df49148202ff6b4208f01 (diff) | |
download | gitlab-ce-6a73b76c5f2e1559ba771e5910852ac4e1283b58.tar.gz |
Remove param[:project_id] at admin controller
The route never passes that parameter to the helpers.
Diffstat (limited to 'app/controllers/admin')
-rw-r--r-- | app/controllers/admin/projects_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/admin/projects_controller.rb b/app/controllers/admin/projects_controller.rb index 2f0d344802f..bdb11e9bee5 100644 --- a/app/controllers/admin/projects_controller.rb +++ b/app/controllers/admin/projects_controller.rb @@ -31,9 +31,7 @@ class Admin::ProjectsController < Admin::ApplicationController protected def project - id = params[:project_id] || params[:id] - - @project = Project.find_with_namespace(id) + @project = Project.find_with_namespace(params[:id]) @project || render_404 end |