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

Version Path
oboe-2.7.19-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.19 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.18-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.18 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.17.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.17.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.16.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.16.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.15.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.15.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.14.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.14.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.13.3-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.13.3 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.12.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.12.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.11.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.11.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.10.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.10.1 lib/oboe/frameworks/rails/inst/active_record.rb