summaryrefslogtreecommitdiff
path: root/lib/api/projects.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-17 09:47:47 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-01-17 09:47:47 +0000
commitf0d2d28118354b6362988687757b63dc7be611e5 (patch)
treec6b1abb371822ba5dd1f7fe4d92b494a30dae9bd /lib/api/projects.rb
parent7527408ad0c72ea7b7aba5c14550c5b08b6aae60 (diff)
parent4d82e9ed0b6ddb45663bde71412de9c840c58337 (diff)
downloadgitlab-ce-f0d2d28118354b6362988687757b63dc7be611e5.tar.gz
Merge branch 'refactoring/context_into_services' into 'master'
Refactoring context Into services To prevent confusion where to write logic. Context or Service?
Diffstat (limited to 'lib/api/projects.rb')
-rw-r--r--lib/api/projects.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/projects.rb b/lib/api/projects.rb
index 66e0d1ba3ef..a4c8f7fc87e 100644
--- a/lib/api/projects.rb
+++ b/lib/api/projects.rb
@@ -102,7 +102,7 @@ module API
:visibility_level,
:import_url]
attrs = map_public_to_visibility_level(attrs)
- @project = ::Projects::CreateContext.new(current_user, attrs).execute
+ @project = ::Projects::CreateService.new(current_user, attrs).execute
if @project.saved?
present @project, with: Entities::Project
else
@@ -143,7 +143,7 @@ module API
:public,
:visibility_level]
attrs = map_public_to_visibility_level(attrs)
- @project = ::Projects::CreateContext.new(user, attrs).execute
+ @project = ::Projects::CreateService.new(user, attrs).execute
if @project.saved?
present @project, with: Entities::Project
else