blob: 7ca84b5df310988ac15b3f7aa15f66c7526a37e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
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
|