Skip to content

Commit

Permalink
Use ignore_rules.unshift instead of ignore_rules.push in example (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
westonganger authored Dec 10, 2024
1 parent b2ba6d0 commit b4e5e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ InnerPerformance.configure do |config|
# * InnerPerformance job namespace - we don't want to save events for
# the job that saves the events because that leeds to infinite loop.
# Better not remove this rule as it will lead to stack overflow.
config.ignore_rules.push(
config.ignore_rules.unshift(
proc { |event| !event.is_a?(ActiveSupport::Notifications::Event) }
)
end
Expand Down

0 comments on commit b4e5e0e

Please sign in to comment.