Module: Fedipub::HandlesDeleteRequests
- Extended by:
- ActiveSupport::Concern
- Included in:
- Actor, DataEntity
- Defined in:
- app/models/concerns/fedipub/handles_delete_requests.rb
Overview
Model concern providing hooks for on_fedipub_delete_requested callback
# Example migration
add_column :my_table, :uuid, :text, default: nil, index: { unique: true }
Usage:
class MyModel < ApplicationRecord
include Fedipub::HandlesDeleteRequests
on_fedipub_delete_requested -> { delete! }
end
Defined Under Namespace
Modules: ClassMethods