app/models/journaled/audit_log/event.rb in journaled-5.3.2 vs app/models/journaled/audit_log/event.rb in journaled-6.0.0
- old
+ new
@@ -73,11 +73,10 @@
def filter_key?(key)
filter_params.include?(key) || encrypted_column?(key)
end
def encrypted_column?(key)
- key.to_s.end_with?('_crypt', '_hmac') ||
- (Rails::VERSION::MAJOR >= 7 && record.encrypted_attribute?(key))
+ key.to_s.end_with?('_crypt', '_hmac') || record.encrypted_attribute?(key)
end
def filter_params
Rails.application.config.filter_parameters
end