app/models/journaled/audit_log/event.rb in journaled-5.3.1 vs app/models/journaled/audit_log/event.rb in journaled-5.3.2

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # FIXME: This cannot be included in lib/ because Journaled::Event is autoloaded via app/models # Autoloading Journaled::Event isn't strictly necessary, and for compatibility it would # make sense to move it to lib/. module Journaled module AuditLog @@ -81,10 +83,10 @@ Rails.application.config.filter_parameters end def filtered_attributes attrs = record.attributes.dup.symbolize_keys - attrs.each do |key, _value| + attrs.each_key do |key| attrs[key] = '[FILTERED]' if filter_key?(key) end end end end