Skip to content

Commit

Permalink
fix audits resource
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Apr 7, 2023
1 parent 290aa0c commit 002959c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/motor/resources/fetch_configured_model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def define_audited_class(klass)
end

def define_class_properties(klass, model)
define_audited_class(klass) if model != Motor::Audit
define_audited_class(klass) unless [Audited::Audit, Motor::Audit].include?(model)

klass.table_name = model.table_name

Expand Down

0 comments on commit 002959c

Please sign in to comment.