From e83149d5ed1dd1b69786ad8029f848b31a3a047d Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin <godfat@godfat.org> Date: Thu, 1 Sep 2016 02:17:20 +0800 Subject: [PATCH] send works on strings --- app/models/project.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/project.rb b/app/models/project.rb index d95645bc255..ec47953799f 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -710,7 +710,7 @@ class Project < ActiveRecord::Base if template.nil? # If no template, we should create an instance. Ex `create_gitlab_ci_service` - self.send :"create_#{service_name}_service" + send("create_#{service_name}_service") else Service.create_from_template(self.id, template) end -- GitLab