module PlaceOS::Model::GroupHistory::Mixin

Overview

Mixin that injects the GroupHistory recording machinery into a model.

Including class must provide three small hook methods that tell the mixin what to write:

protected def group_history_resource_type : String # e.g. "group" protected def group_history_resource_id : String # e.g. self.id.to_s protected def group_history_group_id : UUID? # or nil

Optionally override group_history_changed_fields to strip sensitive attributes (see GroupInvitation).

The mixin installs:

Direct including types

Defined in:

placeos-models/group/history.cr

Instance Method Summary

Instance Method Detail

abstract def group_history_group_id : UUID | Nil #

[View source]
abstract def group_history_resource_id : String #

[View source]