gitlab-org--gitlab-foss/app/services/badges/update_service.rb
2018-07-09 21:13:08 +08:00

12 lines
208 B
Ruby

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