diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-01-13 01:33:04 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-01-22 03:02:29 +0300 |
commit | 4b6e583ce0a395ec4a0dbc1a3a81680b1a0aa700 (patch) | |
tree | 909c9d8ed1351724eab3448d15cac74d84621d08 /lib | |
parent | cd51af1a991eaa5e16e3c6b94c89d90e20a5641f (diff) |
adds test suite
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/services.rb | 5 |
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 |