Sha256: fb1e009cdba8a1a5f4a99ebf6bb7c9aeffd094382b50dc33a57433d7ae55bb87

Contents?: true

Size: 338 Bytes

Versions: 5

Compression:

Stored size: 338 Bytes

Contents

module ActiveRecord
  module ForbidImplicitConnectionCheckout
    module PreventConnectionCheckout
      extend ActiveSupport::Concern

      module ClassMethods
        def forbid_implicit_connection_checkout_for_thread!
          Thread.current[:active_record_forbid_implicit_connections] = true
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
activerecord-forbid_implicit_connection_checkout-1.0.0 lib/active_record/forbid_implicit_connection_checkout/prevent_connection_checkout.rb
activerecord-forbid_implicit_connection_checkout-0.4.0 lib/active_record/forbid_implicit_connection_checkout/prevent_connection_checkout.rb
activerecord-forbid_implicit_connection_checkout-0.3.0 lib/active_record/forbid_implicit_connection_checkout/prevent_connection_checkout.rb
activerecord-forbid_implicit_connection_checkout-0.2.0 lib/active_record/forbid_implicit_connection_checkout/prevent_connection_checkout.rb
activerecord-forbid_implicit_connection_checkout-0.1.0 lib/active_record/forbid_implicit_connection_checkout/prevent_connection_checkout.rb