Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GalenkoEugene opened this issue Oct 23, 2020 · 0 comments

Comments

@GalenkoEugene
Copy link

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

@dzemlianoi-double dzemlianoi-double changed the title Destroy action should return removed object [Endpointable] Destroy action should be able to render some data or send head(:destroyed) Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant