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

create_service.rb « badges « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4a55a00daeb104f996b38873cfe8dbbb240edcda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

module Badges
  class CreateService < Badges::BaseService
    # returns the created badge
    def execute(source)
      badge = Badges::BuildService.new(params).execute(source)

      badge.tap { |b| b.save }
    end
  end
end