Sha256: 9538701527ff0f33ad0ee7c3ac1908025c8baa2334c7a03bd46d4620cb74e784
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
require 'fresh_connection/rack/connection_management' module FreshConnection class Railtie < Rails::Railtie 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 ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fresh_connection-0.4.0 | lib/fresh_connection/railtie.rb |
fresh_connection-0.3.0 | lib/fresh_connection/railtie.rb |