* First commit for audit log - specs need fixing * Fix notification subscription issues + specs * Use single line in notification subscribe initializer * Remove conditional in unpublish endpoint
8 lines
234 B
Ruby
8 lines
234 B
Ruby
class AuditLog < ApplicationRecord
|
|
belongs_to :user, optional: true
|
|
|
|
validates :data, presence: true
|
|
|
|
MODERATOR_AUDIT_LOG_CATEGORY = "moderator.audit.log".freeze
|
|
ADMIN_API_AUDIT_LOG_CATEGORY = "admin_api.audit.log".freeze
|
|
end
|