lib/rage-rb.rb in rage-rb-1.10.0 vs lib/rage-rb.rb in rage-rb-1.10.1
- old
+ new
@@ -61,10 +61,10 @@
def self.patch_active_record_connection_pool
patch = proc do
is_connected = ActiveRecord::Base.connection_pool rescue false
if is_connected
- puts "INFO: Patching ActiveRecord::ConnectionPool"
+ Iodine.on_state(:pre_start) { puts "INFO: Patching ActiveRecord::ConnectionPool" }
Iodine.on_state(:on_start) do
ActiveRecord::Base.connection_handler.connection_pool_list(:all).each do |pool|
pool.extend(Rage::Ext::ActiveRecord::ConnectionPool)
pool.__init_rage_extension
end