feat: Audit log APIs (#6434)
- Adds the appropriate APIs for Audit Logs. ref: #6015
This commit is contained in:
@@ -155,3 +155,4 @@ class Account < ApplicationRecord
|
||||
end
|
||||
|
||||
Account.prepend_mod_with('Account')
|
||||
Account.include_mod_with('Audit::Account')
|
||||
|
||||
@@ -76,3 +76,5 @@ class AutomationRule < ApplicationRecord
|
||||
errors.add(:conditions, 'Automation conditions should have query operator.') if operators.length > 1
|
||||
end
|
||||
end
|
||||
|
||||
AutomationRule.include_mod_with('Audit::Inbox')
|
||||
|
||||
@@ -158,3 +158,4 @@ class Inbox < ApplicationRecord
|
||||
end
|
||||
|
||||
Inbox.prepend_mod_with('Inbox')
|
||||
Inbox.include_mod_with('Audit::Inbox')
|
||||
|
||||
@@ -37,3 +37,5 @@ class Webhook < ApplicationRecord
|
||||
errors.add(:subscriptions, I18n.t('errors.webhook.invalid')) if invalid_subscriptions
|
||||
end
|
||||
end
|
||||
|
||||
Webhook.include_mod_with('Audit::Inbox')
|
||||
|
||||
Reference in New Issue
Block a user