boilerplate icon indicating copy to clipboard operation
boilerplate copied to clipboard

[Endpointable] Destroy action should be able to render some data or send head(:destroyed)

Open GalenkoEugene opened this issue 4 years ago • 0 comments

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

GalenkoEugene avatar Oct 23 '20 06:10 GalenkoEugene