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