-
Notifications
You must be signed in to change notification settings - Fork 64
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
Rename DeleteOperation#destroy to #delete #707
Rename DeleteOperation#destroy to #delete #707
Conversation
def self.delete{% if with_bang %}!{% end %}(*args, **named_args{% if !with_bang %}, &block{% end %}) | ||
{% verbatim do %} | ||
{% raise <<-ERROR | ||
DeleteOperations do not have a 'delete' method. | ||
|
||
Try this... | ||
|
||
▸ Use 'destroy' to delete a record | ||
|
||
ERROR | ||
%} | ||
{% end %} | ||
end |
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.
We should leave this in, but name it destroy
with a message like "destroy has been renamed to delete". Maybe with the type name or something so it's easy to find which ones you have to replace?
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.
I added it in, unfortunately I had to move the compilation error because @type
was not the inherited type and it was a mess of macro code in the backtrace.
This is something that I hope can be removed in the future so I don't think it's a big deal.
a868083
to
5f67d46
Compare
5f67d46
to
9ac4b11
Compare
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.
👍
Fixes #694