summaryrefslogtreecommitdiff
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-24 22:00:30 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-24 22:00:30 +0200
commitf37fa968b2509d8e2ab0fc72aba1fb53df7451c7 (patch)
treeecdeebab9c2c8ee747b2cf59dcebf1cfdb0ec1e0 /app/controllers/application_controller.rb
parentf997947664a7c959b5e606614f56dc52443bd0dd (diff)
downloadgitlab-ce-f37fa968b2509d8e2ab0fc72aba1fb53df7451c7.tar.gz
add ability to change namespace from project edit page
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index 847523d603f..2be9a54da52 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -64,9 +64,8 @@ class ApplicationController < ActionController::Base
def project
id = params[:project_id] || params[:id]
- id = id.split("/") if id.include?("/")
- @project ||= current_user.projects.find_by_path(id)
+ @project ||= current_user.projects.find_with_namespace(id)
@project || render_404
end