Skip to content

Commit

Permalink
fix audit
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Oct 4, 2024
1 parent 17f9bdf commit 4836973
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/models/motor/audit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ module Motor
class Audit < Audited::Audit
self.table_name = 'motor_audits'

if Rails.version.to_f >= 7.2
superclass.abstract_class = true
end

if Rails.version.to_f >= 7.1
serialize :audited_changes, coder: HashSerializer
else
Expand Down
5 changes: 0 additions & 5 deletions config/initializers/audited.rb

This file was deleted.

2 changes: 1 addition & 1 deletion lib/motor/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Motor
VERSION = '0.4.29'
VERSION = '0.4.30'
end

0 comments on commit 4836973

Please sign in to comment.