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

12 lines
194 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module WikiPages
class UpdateService < WikiPages::BaseService
def execute(page)
2017-09-10 17:25:29 +05:30
if page.update(@params)
2016-06-02 11:05:42 +05:30
execute_hooks(page, 'update')
end
page
end
end
end