Skip to content

Commit

Permalink
add a comment regarding multiple invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Jan 14, 2025
1 parent 4b0a7af commit e4c2cea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/datadog/di/contrib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ module Contrib
end
end

# This method can be called more than once, to attempt to load
# DI components that depend on third-party libraries after additional
# dependencies are loaded (or potentially loaded).
module_function def load_now
if defined?(ActiveRecord::Base)
require_relative 'contrib/active_record'
Expand Down

0 comments on commit e4c2cea

Please sign in to comment.