debian-mirror-gitlab/app/services/badges/update_service.rb
2018-11-18 11:00:15 +05:30

14 lines
239 B
Ruby

# 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