lib/ddtrace/contrib/rails/framework.rb in ddtrace-0.7.2 vs lib/ddtrace/contrib/rails/framework.rb in ddtrace-0.8.0

- old
+ new

@@ -9,9 +9,20 @@ require 'ddtrace/contrib/rails/action_view' require 'ddtrace/contrib/rails/active_record' require 'ddtrace/contrib/rails/active_support' require 'ddtrace/contrib/rails/utils' +# Rails < 3.1 +unless defined?(ActiveRecord::Base.connection_config) + ActiveRecord::Base.class_eval do + class << self + def connection_config + connection_pool.spec.config + end + end + end +end + module Datadog module Contrib # TODO[manu]: write docs module Rails # TODO[manu]: write docs