feat: add audit trail for channel updates (#7396)

This commit is contained in:
Vishnu Narayanan
2023-07-21 12:08:19 +05:30
committed by GitHub
parent a3d21024a6
commit 4828071fc3
3 changed files with 88 additions and 3 deletions

View File

@@ -4,9 +4,14 @@ module Channelable
validates :account_id, presence: true
belongs_to :account
has_one :inbox, as: :channel, dependent: :destroy_async, touch: true
after_update :create_audit_log_entry
end
def messaging_window_enabled?
false
end
def create_audit_log_entry; end
end
Channelable.prepend_mod_with('Channelable')