lib/journaled/audit_log.rb in journaled-5.3.2 vs lib/journaled/audit_log.rb in journaled-6.0.0
- old
+ new
@@ -37,10 +37,10 @@
thread_mattr_accessor(:_force) { false }
class << self
def exclude_classes!
excluded_classes.each do |name|
- if Rails::VERSION::MAJOR >= 6 && Rails.autoloaders.zeitwerk_enabled?
+ if Rails.autoloaders.zeitwerk_enabled?
zeitwerk_exclude!(name)
else
classic_exclude!(name)
end
end