lib/fresh_connection/railtie.rb in fresh_connection-0.2.6 vs lib/fresh_connection/railtie.rb in fresh_connection-0.3.0

- old
+ new

@@ -1,19 +1,14 @@ require 'fresh_connection/rack/connection_management' -require 'rails' module FreshConnection class Railtie < Rails::Railtie - config.fresh_connection = ActiveSupport::OrderedOptions.new - initializer "fresh_connection.configure_rails_initialization" do |app| ActiveSupport.on_load(:active_record) do app.config.app_middleware.swap( ActiveRecord::ConnectionAdapters::ConnectionManagement, FreshConnection::Rack::ConnectionManagement ) - - Initializer.extend_active_record end end end end