Class: Flexite::Entry::DestroyArrayEntryService
- Inherits:
-
ActionService
- Object
- ActionService
- Flexite::Entry::DestroyArrayEntryService
- Defined in:
- app/services/flexite/entry/destroy_array_entry_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
6 7 8 9 10 11 12 |
# File 'app/services/flexite/entry/destroy_array_entry_service.rb', line 6 def call if @form.id.present? Entry.destroy(@form.id) end success end |