lib/fresh_connection/initializer.rb in fresh_connection-0.2.0 vs lib/fresh_connection/initializer.rb in fresh_connection-0.2.1

- old
+ new

@@ -1,6 +1,5 @@ -require 'active_record/connection_adapters/mysql2_adapter' require 'fresh_connection/rack/connection_management' require 'fresh_connection/extend/ar_base' require 'fresh_connection/extend/ar_relation' require 'fresh_connection/extend/connection_handler' require 'fresh_connection/extend/mysql2_adapter' @@ -22,9 +21,10 @@ ActiveRecord::ConnectionAdapters::ConnectionHandler.__send__( :include, FreshConnection::Extend::ConnectionHandler ) + require 'active_record/connection_adapters/mysql2_adapter' ActiveRecord::ConnectionAdapters::Mysql2Adapter.__send__( :include, FreshConnection::Extend::Mysql2Adapter ) ActiveRecord::Base.establish_fresh_connection