Instead of redirecting from the project service to the service and back to the model, put all destruction code in the service. Also removes a possible source of failure where run_after_commit may not destroy the project. |
||
|---|---|---|
| .. | ||
| project_hook_spec.rb | ||
| service_hook_spec.rb | ||
| system_hook_spec.rb | ||
| web_hook_spec.rb | ||