boilerplate
boilerplate copied to clipboard
[Endpointable] Destroy action should be able to render some data or send head(:destroyed)
app/controllers/concerns/default_endpoint.rb
match.destroyed { head(:no_content) }
# => replace with
match.destroyed { |result| success_response(result) }
This approach should be discussed with the fronted team