Commit d016b26b authored by Arturo Herrero's avatar Arturo Herrero

Move class method to the right place

This class method was defined in the private scope of the class but this
is not working as expected for class methods. The method should be
public as it's used outside from this class.
parent 1945f57c
...@@ -145,6 +145,10 @@ class Service < ApplicationRecord ...@@ -145,6 +145,10 @@ class Service < ApplicationRecord
%w(commit push tag_push issue confidential_issue merge_request wiki_page) %w(commit push tag_push issue confidential_issue merge_request wiki_page)
end end
def self.event_description(event)
ServicesHelper.service_event_description(event)
end
def self.find_or_create_templates def self.find_or_create_templates
create_nonexistent_templates create_nonexistent_templates
for_template for_template
...@@ -399,10 +403,6 @@ class Service < ApplicationRecord ...@@ -399,10 +403,6 @@ class Service < ApplicationRecord
end end
end end
def self.event_description(event)
ServicesHelper.service_event_description(event)
end
def valid_recipients? def valid_recipients?
activated? && !importing? activated? && !importing?
end 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