Fixes #23098 - Allow searching on all audited models by type (#5395)
This automatically adds all the audited models in an after_initilize block so that models defined in plugins are also included. All the search related definitions for audit have been extracted to a seperate concern. Models using STI require special handling until audits are fixed to properly work with STI.
Related issues
Refactor #23098: allow searching on audited types added from plugins
Fixes #23098 - Allow searching on all audited models by type (#5395)
This automatically adds all the audited models in an after_initilize
block so that models defined in plugins are also included. All the
search related definitions for audit have been extracted to a seperate
concern. Models using STI require special handling until audits are
fixed to properly work with STI.