feat: add audit trail for channel updates (#7396)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user