Skip to content

Commit

Permalink
Fix audit_options
Browse files Browse the repository at this point in the history
  • Loading branch information
malvads committed Jan 31, 2024
1 parent 4ffc6c1 commit c07aa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/audited/auditor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def auditing_enabled
end

def run_conditional_check(condition, matching: true)
return true if condition.blank?
return true if condition.blank? or condition == true
return condition.call(self) == matching if condition.respond_to?(:call)
return send(condition) == matching if respond_to?(condition.to_sym, true)

Expand Down

0 comments on commit c07aa34

Please sign in to comment.