Sha256: 7980e96c72cdaa874a3c5ff6bd34124006d7fbf0496cf2c65c9aa968cbac6efa
Contents?: true
Size: 472 Bytes
Versions: 109
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module ActionCable module Server class Worker module ActiveRecordConnectionManagement extend ActiveSupport::Concern included do if defined?(ActiveRecord::Base) set_callback :work, :around, :with_database_connections end end def with_database_connections connection.logger.tag(ActiveRecord::Base.logger) { yield } end end end end end
Version data entries
109 entries across 109 versions & 9 rubygems