Sha256: 8afc8e40ad91fda26bc2f1b93c7ecc9326cdc2ab8ade810949fb8d631c1865ad
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true require 'active_support' require 'active_record' module PgbConnectionReaperRb class Railtie < Rails::Railtie initializer 'pgb_connection_reaper_rb.configure_rails_initialization' do ActiveSupport.on_load(:active_record) do ActiveRecord::ConnectionAdapters::AbstractAdapter.prepend PgbConnectionReaperRb::Reaper ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.prepend PgbConnectionReaperRb::PostgreSQLAdapterExtension end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pgb_connection_reaper_rb-0.1.1 | lib/pgb_connection_reaper_rb/railtie.rb |
pgb_connection_reaper_rb-0.1.0 | lib/pgb_connection_reaper_rb/railtie.rb |