lib/contrast/framework/rails/patch/rails_application_configuration.rb in contrast-agent-3.15.0 vs lib/contrast/framework/rails/patch/rails_application_configuration.rb in contrast-agent-3.16.0

- old
+ new

@@ -11,19 +11,19 @@ # ActionDispatch::Session::AbstractStore instances within the # application. class RailsApplicationConfiguration def self.instrument @_instrument ||= begin - ::Rails::Application::Configuration.class_eval do - alias_method :cs__patched_session_store, :session_store - def session_store *args - ret = cs__patched_session_store(*args) - Contrast::Framework::Rails::Patch::AssessConfiguration.analyze_session_store(*args) - ret - end - end - true - end + ::Rails::Application::Configuration.class_eval do + alias_method :cs__patched_session_store, :session_store + def session_store *args + ret = cs__patched_session_store(*args) + Contrast::Framework::Rails::Patch::AssessConfiguration.analyze_session_store(*args) + ret + end + end + true + end end end end end end