Deprecate code for Project. Use title and path
This commit is contained in:
parent
ab9d023651
commit
c50ec72b52
22 changed files with 79 additions and 83 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue