summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-23 21:11:09 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-11-23 21:11:09 +0300
commitc50ec72b52e9ed7270f7c81c2c71fd8e5a28eeb0 (patch)
tree48c30a44b85b84a4231bff84e51133e7812b55ca /lib/api/helpers.rb
parentab9d02365181df373beffbe7732b36b9b3f7a307 (diff)
downloadgitlab-ce-c50ec72b52e9ed7270f7c81c2c71fd8e5a28eeb0.tar.gz
Deprecate code for Project. Use title and path
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index a339ec4a6fc..e9305b40836 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -6,7 +6,7 @@ module Gitlab
def user_project
if @project ||= current_user.projects.find_by_id(params[:id]) ||
- current_user.projects.find_by_code(params[:id])
+ current_user.projects.find_by_path(params[:id])
else
not_found!
end