Commit 324ef530 authored by Alex Kalderimis's avatar Alex Kalderimis

Delegate to super implementation

parent 1c2f790e
......@@ -6,9 +6,7 @@ class ServiceHook < WebHook
belongs_to :service
validates :service, presence: true
# rubocop: disable CodeReuse/ServiceClass
def execute(data, hook_name = 'service_hook')
WebHookService.new(self, data, hook_name).execute
super(data, hook_name)
end
# rubocop: enable CodeReuse/ServiceClass
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