Class: Todos::Destroy::BaseService

Inherits:
Object
  • Object
show all
Defined in:
app/services/todos/destroy/base_service.rb

Instance Method Summary collapse

Instance Method Details

#executeObject


6
7
8
9
10
# File 'app/services/todos/destroy/base_service.rb', line 6

def execute
  return unless todos_to_remove?

  without_authorized(todos).delete_all
end