Created
June 16, 2010 17:31
-
-
Save wkrsz/440994 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/caboose/acts/paranoid.rb b/lib/caboose/acts/paranoid.rb | |
index 608169d..fc6199b 100644 | |
--- a/lib/caboose/acts/paranoid.rb | |
+++ b/lib/caboose/acts/paranoid.rb | |
@@ -171,6 +171,7 @@ module Caboose #:nodoc: | |
unless new_record? | |
self.class.update_all self.class.send(:sanitize_sql, ["#{self.class.deleted_attribute} = ?", (self.deleted_at = self.class.send(:current_time))]), ["#{self.class.primary_key} = ?", id] | |
end | |
+ @destroyed = true | |
freeze | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment