add ability to change namespace from project edit page
This commit is contained in:
parent
f997947664
commit
f37fa968b2
9 changed files with 64 additions and 26 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue