Skip to content

Commit 0acadf5

Browse files
authored
Merge pull request #1 from pendletons/sp/update-deprecation-method-call
Add extra method params for ActiveSupport::Deprecation.behavior
2 parents 17bb800 + c204f5c commit 0acadf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/deprecation_tracker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def warn(*messages)
3232

3333
def self.track_rspec(rspec_config, shitlist_path:, mode:, transform_message: nil)
3434
deprecation_tracker = DeprecationTracker.new(shitlist_path, transform_message)
35-
ActiveSupport::Deprecation.behavior << -> (message, _callstack) { deprecation_tracker.add(message) }
35+
ActiveSupport::Deprecation.behavior << -> (message, _callstack, _deprecation_horizon, _gem_name) { deprecation_tracker.add(message) }
3636
KernelWarnTracker.callbacks << -> (message) { deprecation_tracker.add(message) }
3737

3838
rspec_config.around do |example|

0 commit comments

Comments
 (0)