Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-18 22:21:13 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-18 22:21:13 +0400
commit6f05ea4f6e26e76edc0a6ad5d2eb4e5db676aea0 (patch)
tree19e8adf1f6e74a4636ef728bf06e4c01d94ae518 /lib
parent232d61d59808e6f0c731d135d728800c4b13ae27 (diff)
Improve CreateContext call. Fixed test
Diffstat (limited to 'lib')
-rw-r--r--lib/api/projects.rb2
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