lib/publishus.rb in publishus-0.0.1 vs lib/publishus.rb in publishus-0.0.2
- old
+ new
@@ -43,10 +43,10 @@
publishable.revert_to(publishable.published_at) unless publishable.current?
end
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)
self.update_attribute(:published_at, time||Time.now)
end
\ No newline at end of file