Skip to content

Instantly share code, notes, and snippets.

@wkrsz
Created June 16, 2010 17:31
Show Gist options
  • Save wkrsz/440994 to your computer and use it in GitHub Desktop.
Save wkrsz/440994 to your computer and use it in GitHub Desktop.
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