gitlab-org--gitlab-foss/app/services/badges/update_service.rb

13 lines
219 B
Ruby
Raw Normal View History

2018-03-05 12:51:40 -05:00
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