2018-07-18 16:03:33 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-02-28 07:26:52 +00:00
|
|
|
module WikiPages
|
|
|
|
class UpdateService < WikiPages::BaseService
|
|
|
|
def execute(page)
|
2017-07-23 08:19:10 +00:00
|
|
|
if page.update(@params)
|
2016-02-28 07:26:52 +00:00
|
|
|
execute_hooks(page, 'update')
|
|
|
|
end
|
|
|
|
|
|
|
|
page
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|