-
Notifications
You must be signed in to change notification settings - Fork 289
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
Moving before_destroy callbacks because of rails/rails#3458 #2030
Conversation
@@ -21,6 +21,9 @@ class KTEnvironment < ActiveRecord::Base | |||
include Ext::PermissionTagCleanup | |||
acts_as_reportable | |||
|
|||
before_destroy :confirm_last_env | |||
before_destroy :delete_default_view_version |
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.
Should these two include comments like the one below?
What do you think about trying to annotate comments like that with a common word/phrase to find them easily in the future with |
Done. |
ACK |
@daviddavis could you please add test to https://github.com/Katello/katello/blob/master/src/test/source_code_test.rb to ensure |
@pitr-ch before_destroy doesn't necessarily need to proceed This commit doesn't move all before_destroys to be before |
Moving before_destroy callbacks because of rails/rails#3458
@daviddavis Thanks. |
Moving before_destroy callbacks because of rails/rails#3458
Moving before_destroy callbacks because of rails/rails#3458