Module: Datadog::DI::Contrib Private
- Defined in:
- lib/datadog/di/contrib.rb,
lib/datadog/di/contrib/railtie.rb
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Defined Under Namespace
Classes: Railtie
Class Method Summary collapse
-
.load_now ⇒ Object
private
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).
- .load_now_or_later ⇒ Object private
Class Method Details
.load_now ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
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).
19 20 21 22 23 |
# File 'lib/datadog/di/contrib.rb', line 19 module_function def load_now if defined?(ActiveRecord::Base) require_relative 'contrib/active_record' end end |
.load_now_or_later ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 12 13 14 |
# File 'lib/datadog/di/contrib.rb', line 8 module_function def load_now_or_later if Datadog::Core::Contrib::Rails::Utils.railtie_supported? require_relative 'contrib/railtie' else load_now end end |