Skip to content

Commit

Permalink
return if options did not change
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammednasser-32 committed Oct 22, 2024
1 parent e3a9d1c commit d1c1b68
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/audited/auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ def has_associated_audits
def update_audited_options(new_options)
previous_audit_options = self.audited_options
set_audited_options(new_options)

return if previous_audit_options == self.audited_options

self.reset_audited_columns

log_message = "#{self.name} is already audited, audit options will be updated\n"\
Expand Down

0 comments on commit d1c1b68

Please sign in to comment.