Sha256: 46232c7378ed968da4640805241b628ca78cf14aba7e242b8e8d457a4c805070
Contents?: true
Size: 499 Bytes
Versions: 3
Compression:
Stored size: 499 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module Acts module List class WithConnection def initialize(recipient) @recipient = recipient end attr_reader :recipient def call if recipient.respond_to?(:with_connection) recipient.with_connection do |connection| yield connection end else yield recipient.connection end end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems