Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::JdbcConnectionPoolCallbacks

Public Class Methods

included(base) click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 4
def self.included(base)
  if base.respond_to?(:set_callback) # Rails 3 callbacks
    base.set_callback :checkin, :after, :on_checkin
    base.set_callback :checkout, :before, :on_checkout
  else
    base.checkin :on_checkin
    base.checkout :on_checkout
  end
end
needed?() click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 14
def self.needed?
  ActiveRecord::Base.respond_to?(:connection_pool)
end

Public Instance Methods

on_checkin() click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 18
def on_checkin
  # default implementation does nothing
end
on_checkout() click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 22
def on_checkout
  # default implementation does nothing
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.