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

Return status code 200 when destroying a record from the index page fails #2776

Merged
merged 3 commits into from
Nov 23, 2016
Merged

Return status code 200 when destroying a record from the index page fails #2776

merged 3 commits into from
Nov 23, 2016

Conversation

chamun
Copy link
Contributor

@chamun chamun commented Nov 19, 2016

This PR closes issue #2775.

It changes how the index and the dashboard actions decide which status code to return. Instead of relying on flash[:error] to render status code 404, the new instance variable @status_code is used.

Stop returning status code 404 when destroying a record from the index
page fails and returns status 200 instead.
@chamun chamun changed the title Add specs that reproduce issue #2775 Return status code 200 when destroying a record from the index page fails Nov 21, 2016
@mshibuya mshibuya merged commit 482b5ac into railsadminteam:master Nov 23, 2016
@mshibuya
Copy link
Member

Looks good, thanks!

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

Successfully merging this pull request may close these issues.

2 participants