module SoftDeletable
Constants
- VERSION
Public Instance Methods
destroy()
click to toggle source
Soft delete the record
Endpoints with a deleted_at value will not appear in the default scope.
# File lib/soft_deletable.rb, line 20 def destroy update_attribute(:deleted_at,Time.now) end