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: a653b7903dd8b228599b5fc5384abb08cbcd1826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module Badges
  class UpdateService < Badges::BaseService
    # returns the updated badge
    def execute(badge)
      if params.present?
        badge.update(params)
      end

      badge
    end
  end
end