Sha256: 764ae2f0d33d265d3edc5a1943b125ac2fc9b796b60abe7d0091fd942f3c8b2c
Contents?: true
Size: 1.06 KB
Versions: 29
Compression:
Stored size: 1.06 KB
Contents
# Copyright (c) 2013 AppNeta, Inc. # All rights reserved. require 'oboe/frameworks/rails/inst/connection_adapters/utils' require 'oboe/frameworks/rails/inst/connection_adapters/mysql' require 'oboe/frameworks/rails/inst/connection_adapters/mysql2' require 'oboe/frameworks/rails/inst/connection_adapters/postgresql' require 'oboe/frameworks/rails/inst/connection_adapters/oracle' if Oboe::Config[:active_record][:enabled] && !defined?(JRUBY_VERSION) begin adapter = ActiveRecord::Base.connection.adapter_name.downcase Oboe::Inst::ConnectionAdapters::FlavorInitializers.mysql if adapter == 'mysql' Oboe::Inst::ConnectionAdapters::FlavorInitializers.mysql2 if adapter == 'mysql2' Oboe::Inst::ConnectionAdapters::FlavorInitializers.postgresql if adapter == 'postgresql' Oboe::Inst::ConnectionAdapters::FlavorInitializers.oracle if adapter == 'oracleenhanced' rescue StandardError => e Oboe.logger.error "[oboe/error] Oboe/ActiveRecord error: #{e.inspect}" Oboe.logger.debug e.backtrace.join("\n") end end # vim:set expandtab:tabstop=2
Version data entries
29 entries across 29 versions & 1 rubygems