module ActiveRecord::ConnectionAdapters::Jdbc::ConnectionPoolCallbacks
ActiveRecord connection pool callbacks for JDBC. @see ActiveRecord::ConnectionAdapters::Jdbc::JndiConnectionPoolCallbacks
Public Class Methods
included(base)
click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 7 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
Public Instance Methods
on_checkin()
click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 17 def on_checkin # default implementation does nothing end
on_checkout()
click to toggle source
# File lib/arjdbc/jdbc/callbacks.rb, line 21 def on_checkout # default implementation does nothing end