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

- old
+ new

@@ -1,20 +1,12 @@ -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' module FreshConnection class Initializer class << self - def swap_rack(app) - app.config.middleware.swap( - ActiveRecord::ConnectionAdapters::ConnectionManagement, - FreshConnection::Rack::ConnectionManagement - ) - end - def extend_active_record ActiveRecord::Base.extend FreshConnection::Extend::ArBase ActiveRecord::Relation.__send__(:include, FreshConnection::Extend::ArRelation)