Sha256: 2d8a1af3649a6278ec0f72cb364e11436ae3f8aa326f283d7f1c7ddb86a0a962
Contents?: true
Size: 420 Bytes
Versions: 1
Compression:
Stored size: 420 Bytes
Contents
# frozen_string_literal: true module DatabaseRewinder module LeaseConnectionCompat # Make old AR compatible with AR >= 7.2 by defining `lease_connection` unless ActiveRecord::ConnectionAdapters::ConnectionPool.instance_methods.include? :lease_connection refine ActiveRecord::ConnectionAdapters::ConnectionPool do def lease_connection connection end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
database_rewinder-1.1.0 | lib/database_rewinder/lease_connection_compat.rb |