Use a string to define the class used by Audited

This is possible since Audited 5.2.0, and will make it easier to start
using Zeitwerk because it won't reference a constant in an initializer.
This commit is contained in:
Javi Martín
2024-03-29 00:44:17 +01:00
parent 919755f328
commit 004684efe6

View File

@@ -1,4 +1,4 @@
Audited.config do |config|
config.audit_class = ::Audit
config.audit_class = "::Audit"
config.ignored_default_callbacks = [:touch]
end