Sha256: 3b1403e44137094a43a5f5b766f5b491214f70c6e087247cda05e15b8d9533b5
Contents?: true
Size: 282 Bytes
Versions: 12
Compression:
Stored size: 282 Bytes
Contents
# frozen_string_literal: true module DatabaseRewinder class DummyModel < ActiveRecord::Base class << self def with_temporary_connection(config) establish_connection config yield connection connection.pool.disconnect! end end end end
Version data entries
12 entries across 12 versions & 1 rubygems