Controle de versoes para noticias e eventos

This commit is contained in:
2008-03-18 05:34:13 -03:00
parent 4c55ce7b45
commit 104902919b
15 changed files with 84 additions and 30 deletions

View File

@@ -142,6 +142,12 @@ module Caboose #:nodoc:
def deleted?
!!read_attribute(:deleted_at)
end
def restore!
self.deleted_at = nil
self.save!
end
end
end
end