Sha256: 4e891765d403f47cf9421f4c7780fc13940417ccd33bf82dd8f37cbe7e8c018f

Contents?: true

Size: 1.03 KB

Versions: 14

Compression:

Stored size: 1.03 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]
  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

14 entries across 14 versions & 1 rubygems

Version Path
oboe-2.7.5.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.5.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.5.wolf3 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.5.wolf3-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.5.wolf1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.5.wolf1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.4.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.4.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.3.1-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.3.1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.2.fuchs2 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.2.fuchs1 lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.2.2-java lib/oboe/frameworks/rails/inst/active_record.rb
oboe-2.7.2.2 lib/oboe/frameworks/rails/inst/active_record.rb