Module: NeetoCommonsBackend::SoftDeletable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/models/concerns/neeto_commons_backend/soft_deletable.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
12 13 14 |
# File 'app/models/concerns/neeto_commons_backend/soft_deletable.rb', line 12 def destroy update_columns(deleted_at: DateTime.now, deleted_by: User.current) end |
#really_destroy ⇒ Object
16 17 18 |
# File 'app/models/concerns/neeto_commons_backend/soft_deletable.rb', line 16 def really_destroy update_columns(deleted_at: DateTime.now, deleted_by: User.current) end |