diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-18 22:21:13 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-18 22:21:13 +0400 |
commit | 6f05ea4f6e26e76edc0a6ad5d2eb4e5db676aea0 (patch) | |
tree | 19e8adf1f6e74a4636ef728bf06e4c01d94ae518 /lib | |
parent | 232d61d59808e6f0c731d135d728800c4b13ae27 (diff) |
Improve CreateContext call. Fixed test
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 c4717d11155..cbef1ed3b50 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 = Projects::CreateContext.new(nil, attrs, current_user).execute + @project = ::Projects::CreateContext.new(current_user, attrs).execute if @project.saved? present @project, with: Entities::Project else |