From 470e46816c4d757d70f792b6cdd3a2c5ab0ca8d0 Mon Sep 17 00:00:00 2001 From: lostboy Date: Fri, 30 Apr 2010 13:44:56 +0700 Subject: [PATCH] Fix for bad attempt at overriding destroy but also allowing real destroys --- lib/publishus.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/publishus.rb b/lib/publishus.rb index 3d2c6c5..0466018 100644 --- a/lib/publishus.rb +++ b/lib/publishus.rb @@ -45,7 +45,7 @@ def live end def destroy(real=false) - self.update_attribute(:deleted_at, Time.now) unless real then super.destroy + self.update_attribute(:deleted_at, Time.now) end def publish!(time=nil)