module Oweb3SoftDelete::ActiveRecord
Public Class Methods
included(base)
click to toggle source
# File lib/oweb3_soft_delete.rb, line 3 def self.included(base) end
Public Instance Methods
oweb3_delete!()
click to toggle source
# File lib/oweb3_soft_delete.rb, line 6 def oweb3_delete! self.update(soft_deleted: DateTime.now) end
oweb3_undelete!()
click to toggle source
# File lib/oweb3_soft_delete.rb, line 10 def oweb3_undelete! self.update(soft_deleted: nil) end