From cd51af1a991eaa5e16e3c6b94c89d90e20a5641f Mon Sep 17 00:00:00 2001 From: Tiago Botelho Date: Tue, 27 Dec 2016 12:44:24 +0000 Subject: adds events to services api deserialization --- app/models/project_services/external_wiki_service.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'app/models/project_services/external_wiki_service.rb') diff --git a/app/models/project_services/external_wiki_service.rb b/app/models/project_services/external_wiki_service.rb index d7b6e505191..961b1c19a33 100644 --- a/app/models/project_services/external_wiki_service.rb +++ b/app/models/project_services/external_wiki_service.rb @@ -13,7 +13,7 @@ class ExternalWikiService < Service 'Replaces the link to the internal wiki with a link to an external wiki.' end - def to_param + def self.to_param 'external_wiki' end @@ -29,4 +29,12 @@ class ExternalWikiService < Service nil end end + + def self.supported_events + %w() + end + + def self.event_names + self.supported_events.map { |event| "#{event}_events" } + end end -- cgit v1.2.1 From 4b6e583ce0a395ec4a0dbc1a3a81680b1a0aa700 Mon Sep 17 00:00:00 2001 From: Tiago Botelho Date: Thu, 12 Jan 2017 17:33:04 -0500 Subject: adds test suite --- app/models/project_services/external_wiki_service.rb | 4 ---- 1 file changed, 4 deletions(-) (limited to 'app/models/project_services/external_wiki_service.rb') diff --git a/app/models/project_services/external_wiki_service.rb b/app/models/project_services/external_wiki_service.rb index 961b1c19a33..bdf6fa6a586 100644 --- a/app/models/project_services/external_wiki_service.rb +++ b/app/models/project_services/external_wiki_service.rb @@ -33,8 +33,4 @@ class ExternalWikiService < Service def self.supported_events %w() end - - def self.event_names - self.supported_events.map { |event| "#{event}_events" } - end end -- cgit v1.2.1