Sha256: 26f6b96049023430942d39689a34577425de5a91e01b1d064159f2edd21db055

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

module FreshConnection
  module Rack
    class ConnectionManagement < ActiveRecord::ConnectionAdapters::ConnectionManagement
      def call(env)
        super
      ensure
        ActiveRecord::Base.put_aside! unless env.key?("rack.test")
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fresh_connection-0.4.0 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.3.0 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.6 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.5 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.4 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.3 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.2 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.1 lib/fresh_connection/rack/connection_management.rb
fresh_connection-0.2.0 lib/fresh_connection/rack/connection_management.rb