Class: Flexite::Config::UpdateService
- Inherits:
-
ActionService
- Object
- ActionService
- Flexite::Config::UpdateService
- Defined in:
- app/services/flexite/config/update_service.rb
Instance Method Summary collapse
Methods inherited from ActionService
Constructor Details
This class inherits a constructor from Flexite::ActionService
Instance Method Details
#call ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/services/flexite/config/update_service.rb', line 4 def call if @form.invalid? return failure end @record = Config.find(@form.id) @record.config_id = @form.config_id @record.selectable = @form.selectable @record.name = @form.name @record.save success end |