lib/instana/frameworks/rails.rb in instana-1.5.0 vs lib/instana/frameworks/rails.rb in instana-1.5.1
- old
+ new
@@ -3,10 +3,10 @@
if defined?(::Rails)
# In Rails, let's use the Rails logger
::Instana.logger = ::Rails.logger if ::Rails.logger
if ::Rails::VERSION::MAJOR < 3
- ::Rails.configuration.after_initialization do
+ ::Rails.configuration.after_initialize do
::Instana.logger.info "Instrumenting Rack"
::Rails.configuration.middleware.insert 0, ::Instana::Rack
end
else
module ::Instana