lib/contrast/agent.rb in contrast-agent-3.15.0 vs lib/contrast/agent.rb in contrast-agent-3.16.0

- old
+ new

@@ -92,14 +92,7 @@ require 'contrast/utils/gemfile_reader' # rack event monitoring require 'contrast/agent/middleware' -# TODO: RUBY-919 -# Refactor to use Contrast::Framework::Manager -# Contrast::Framework::Manager.before_load_patches! -if defined?(::Rails) - require 'contrast/framework/rails/patch/support' - require 'contrast/framework/rails/patch/rails_application_configuration' - Contrast::Framework::Rails::Patch::RailsApplicationConfiguration.instrument - require 'contrast/agent/railtie' if ::Rails::VERSION::MAJOR.to_i >= 3 -end +# Install the patches we need before the application has a chance to initialize +Contrast::Agent.framework_manager.before_load_patches!