debian-mirror-gitlab/app/services/wiki_pages/base_service.rb

12 lines
332 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module WikiPages
class BaseService < ::BaseService
private
def execute_hooks(page, action = 'create')
2017-09-10 17:25:29 +05:30
page_data = Gitlab::DataBuilder::WikiPage.build(page, current_user, action)
2016-06-02 11:05:42 +05:30
@project.execute_hooks(page_data, :wiki_page_hooks)
@project.execute_services(page_data, :wiki_page_hooks)
end
end
end