diff options
author | GitLab <gitlab@localhost> | 2013-01-17 19:35:57 +0400 |
---|---|---|
committer | GitLab <gitlab@localhost> | 2013-01-17 19:35:57 +0400 |
commit | 232d61d59808e6f0c731d135d728800c4b13ae27 (patch) | |
tree | 87356bbbd97abd549fcc489fb3bed60dc0438528 /lib | |
parent | c7c1a97c2fecb8931bbe66af6860a072ca97335d (diff) |
Refactor project creation. Added logout link to profile page
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/projects.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb index 55c81f3158a..c4717d11155 100644 --- a/lib/api/projects.rb +++ b/lib/api/projects.rb @@ -43,7 +43,7 @@ module Gitlab :wall_enabled, :merge_requests_enabled, :wiki_enabled] - @project = Project.create_by_user(attrs, current_user) + @project = Projects::CreateContext.new(nil, attrs, current_user).execute if @project.saved? present @project, with: Entities::Project else |