-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix delete response in admin users controller #4415
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yeah, :text
doesn't work on Rails 5.1+.
Yeah, and we didn't noticed... |
c6f7eac
to
55296cf
Compare
Hey @tvdeyen, could you rebase from master so that CI is green? 🙂 |
If a user with orders gets deleted in the admin an exception is raised. This exception is handled by the `user_destroy_with_orders_error method`. This method uses the deprecated (and later removed) `text` response. Instead we need to use `plain`.
55296cf
to
0d641a7
Compare
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Description
If a user with orders gets deleted in the admin an exception is raised. This exception is handled by the
user_destroy_with_orders_error method
.This method uses the deprecated (and later removed)
text
response. Instead we need to useplain
.Checklist: