summaryrefslogtreecommitdiff
path: root/app/controllers/admin
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-10-19 23:02:19 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-10-19 23:02:19 +0200
commit6a73b76c5f2e1559ba771e5910852ac4e1283b58 (patch)
treec9c45702d10f2e79eaac4763601f2b6d5f26d212 /app/controllers/admin
parent3880bb61760ef1f69b0df49148202ff6b4208f01 (diff)
downloadgitlab-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.rb4
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