Commit 0a57c3f6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Refactor Project#enable_ci method

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent aba9668a
...@@ -747,15 +747,6 @@ class Project < ActiveRecord::Base ...@@ -747,15 +747,6 @@ class Project < ActiveRecord::Base
service.save service.save
# Create Ci::Project # Create Ci::Project
params = OpenStruct.new({ Ci::CreateProjectService.new.execute(user, self)
id: self.id,
name_with_namespace: self.name_with_namespace,
path_with_namespace: self.path_with_namespace,
web_url: self.web_url,
default_branch: self.default_branch,
ssh_url_to_repo: self.ssh_url_to_repo
})
Ci::CreateProjectService.new.execute(user, params)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment