Method: UserPreferences::UpdateService#execute
- Defined in:
- app/services/user_preferences/update_service.rb
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'app/services/user_preferences/update_service.rb', line 10 def execute if @preferences.update(@params) ServiceResponse.success( message: 'Preference was updated', payload: { preferences: @preferences }) else ServiceResponse.error(message: 'Could not update preference') end end |