13 lines
225 B
Ruby
13 lines
225 B
Ruby
# frozen_string_literal: true
|
|
|
|
module WikiPages
|
|
class UpdateService < WikiPages::BaseService
|
|
def execute(page)
|
|
if page.update(@params)
|
|
execute_hooks(page, 'update')
|
|
end
|
|
|
|
page
|
|
end
|
|
end
|
|
end
|