Class: Flexite::Config::CreateService
- Inherits:
-
ActionService
- Object
- ActionService
- Flexite::Config::CreateService
- Defined in:
- app/services/flexite/config/create_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
5 6 7 8 9 10 11 12 |
# File 'app/services/flexite/config/create_service.rb', line 5 def call if @form.invalid? return failure end @record = Config.create(@form.attributes) success end |