Module: ActiveRecord::ConnectionAdapters::JndiConnectionPoolCallbacks

Defined in:
transactions/lib/torquebox/active_record_adapters.rb

Class Method Summary (collapse)

Class Method Details

+ (Object) prepare(adapter, conn)



147
148
149
150
151
# File 'transactions/lib/torquebox/active_record_adapters.rb', line 147

def self.prepare(adapter, conn)
  if ActiveRecord::Base.respond_to?(:connection_pool) && conn.jndi_connection?
    adapter.extend self
  end
end