Method: Enki::Comment#destroy_with_undo
- Defined in:
- app/models/enki/comment.rb
#destroy_with_undo ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'app/models/enki/comment.rb', line 37 def destroy_with_undo undo_item = nil transaction do self.destroy undo_item = DeleteCommentUndo.create_undo(self) end undo_item end |