Sha256: 7c04900c46b60b760ecf7bdd656f2781474a922d7ab39e4fd63c3d5a7a64af7c

Contents?: true

Size: 307 Bytes

Versions: 9

Compression:

Stored size: 307 Bytes

Contents

module FreshConnection
  class Railtie < Rails::Railtie
    initializer "fresh_connection.configure_rails_initialization" do |app|
      app.config.middleware.swap(
        ActiveRecord::ConnectionAdapters::ConnectionManagement,
        FreshConnection::Rack::ConnectionManagement
      )
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fresh_connection-0.1.8 lib/fresh_connection/railtie.rb
fresh_connection-0.1.7 lib/fresh_connection/railtie.rb
fresh_connection-0.1.6 lib/fresh_connection/railtie.rb
fresh_connection-0.1.5 lib/fresh_connection/railtie.rb
fresh_connection-0.1.4 lib/fresh_connection/railtie.rb
fresh_connection-0.1.3 lib/fresh_connection/railtie.rb
fresh_connection-0.1.2 lib/fresh_connection/railtie.rb
fresh_connection-0.1.1 lib/fresh_connection/railtie.rb
fresh_connection-0.1.0 lib/fresh_connection/railtie.rb