Class: Badges::UpdateService

Inherits:
BaseService show all
Defined in:
app/services/badges/update_service.rb

Instance Method Summary collapse

Instance Method Details

#execute(badge) ⇒ Object

returns the updated badge



6
7
8
9
10
11
12
# File 'app/services/badges/update_service.rb', line 6

def execute(badge)
  if params.present?
    badge.update(params)
  end

  badge
end