Commit 1b8bbe5c authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 0f06c6c9
...@@ -723,7 +723,7 @@ class Project < ActiveRecord::Base ...@@ -723,7 +723,7 @@ class Project < ActiveRecord::Base
if template.nil? if template.nil?
# If no template, we should create an instance. Ex `create_gitlab_ci_service` # If no template, we should create an instance. Ex `create_gitlab_ci_service`
send("create_#{service_name}_service") public_send("create_#{service_name}_service")
else else
Service.create_from_template(self.id, template) Service.create_from_template(self.id, template)
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