Skip to content

Commit

Permalink
fix ActiveSupport::Deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
bmansoob committed Sep 5, 2024
1 parent f19a085 commit 032840c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app_profiler/sampler/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(sample_rate: SAMPLE_RATE,

raise ArgumentError, "mode probabilities must sum to 1" unless backends_probability.values.sum == 1.0

ActiveSupport::Deprecation.warn("passing paths is deprecated, use targets instead") if paths
ActiveSupport::Deprecation.new.warn("passing paths is deprecated, use targets instead") if paths

@sample_rate = sample_rate
@targets = paths || targets
Expand Down

0 comments on commit 032840c

Please sign in to comment.