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: 8f6a50da8381443ac95fd076f547945fc3b9ccf2 (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[:content], @params[:format], @params[:message])
        execute_hooks(page, 'update')
      end

      page
    end
  end
end