Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Pahlevi <adam.pahlevi@gmail.com>2017-02-03 02:43:19 +0300
committerAdam Pahlevi <adam.pahlevi@gmail.com>2017-02-03 03:14:04 +0300
commita0586dbc165cc09422412149712a218938137308 (patch)
tree1918196171212c48a28bb4e28b6b0fed5f3ad2f2 /app/controllers/projects/application_controller.rb
parentd777e6f1da98be64b872a2bea2222f3e037a3d4d (diff)
replace `find_with_namespace` with `find_by_full_path`
add complete changelog for !8949
Diffstat (limited to 'app/controllers/projects/application_controller.rb')
-rw-r--r--app/controllers/projects/application_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb
index b2ff36f6538..ba523b190bf 100644
--- a/app/controllers/projects/application_controller.rb
+++ b/app/controllers/projects/application_controller.rb
@@ -24,7 +24,7 @@ class Projects::ApplicationController < ApplicationController
end
project_path = "#{namespace}/#{id}"
- @project = Project.find_with_namespace(project_path)
+ @project = Project.find_by_full_path(project_path)
if can?(current_user, :read_project, @project) && !@project.pending_delete?
if @project.path_with_namespace != project_path