Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_service.rb « wiki_pages « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 93cbd9a509f705e390cbf5f343e7862bf4d8b1c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
module WikiPages
  class UpdateService < WikiPages::BaseService
    def execute(page)
      if page.update(@params)
        execute_hooks(page, 'update')
      end

      page
    end
  end
end