summaryrefslogtreecommitdiff
path: root/lib/api/services.rb
diff options
context:
space:
mode:
authorTiago Botelho <tiagonbotelho@hotmail.com>2017-01-12 17:33:04 -0500
committerTiago Botelho <tiagonbotelho@hotmail.com>2017-01-22 00:02:29 +0000
commit4b6e583ce0a395ec4a0dbc1a3a81680b1a0aa700 (patch)
tree909c9d8ed1351724eab3448d15cac74d84621d08 /lib/api/services.rb
parentcd51af1a991eaa5e16e3c6b94c89d90e20a5641f (diff)
downloadgitlab-ce-4b6e583ce0a395ec4a0dbc1a3a81680b1a0aa700.tar.gz
Diffstat (limited to 'lib/api/services.rb')
-rw-r--r--lib/api/services.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/api/services.rb b/lib/api/services.rb
index 907f80db438..a0abec49438 100644
--- a/lib/api/services.rb
+++ b/lib/api/services.rb
@@ -600,12 +600,11 @@ module API
service_classes.each do |service|
event_names = service.try(:event_names) || []
event_names.each do |event_name|
- services[service.to_param.gsub("_", "-")] << {
+ services[service.to_param.tr("_", "-")] << {
required: false,
name: event_name.to_sym,
type: String,
- desc: ServicesHelper.instance_method(:service_event_description)
- .bind(self).call(event_name)
+ desc: ServicesHelper.service_event_description(event_name)
}
end
end