gitlab-org--gitlab-foss/app/services/wiki_pages/update_service.rb
2017-08-03 07:38:11 +07:00

11 lines
194 B
Ruby

module WikiPages
class UpdateService < WikiPages::BaseService
def execute(page)
if page.update(@params)
execute_hooks(page, 'update')
end
page
end
end
end