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

update_service.rb « badges « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7ca84b5df310988ac15b3f7aa15f66c7526a37e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module Badges
  class UpdateService < Badges::BaseService
    # returns the updated badge
    def execute(badge)
      if params.present?
        badge.update_attributes(params)
      end

      badge
    end
  end
end