lib/journaled/audit_log.rb in journaled-5.3.0 vs lib/journaled/audit_log.rb in journaled-5.3.1

- old
+ new

@@ -50,14 +50,11 @@ end private def zeitwerk_exclude!(name) - if Object.const_defined?(name) - name.constantize.skip_audit_log - else - Rails.autoloaders.main.on_load(name) { |klass, _path| klass.skip_audit_log } - end + name.constantize.skip_audit_log if Object.const_defined?(name) + Rails.autoloaders.main.on_load(name) { |klass, _path| klass.skip_audit_log } end def classic_exclude!(name) name.constantize.skip_audit_log rescue NameError