From a0586dbc165cc09422412149712a218938137308 Mon Sep 17 00:00:00 2001 From: Adam Pahlevi Date: Fri, 3 Feb 2017 06:43:19 +0700 Subject: replace `find_with_namespace` with `find_by_full_path` add complete changelog for !8949 --- lib/constraints/project_url_constrainer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/constraints') diff --git a/lib/constraints/project_url_constrainer.rb b/lib/constraints/project_url_constrainer.rb index 730b05bed97..a10b4657d7d 100644 --- a/lib/constraints/project_url_constrainer.rb +++ b/lib/constraints/project_url_constrainer.rb @@ -8,6 +8,6 @@ class ProjectUrlConstrainer return false end - Project.find_with_namespace(full_path).present? + Project.find_by_full_path(full_path).present? end end -- cgit v1.2.3