Sha256: 44febd434c7809e4f624244037c2a0c31430b361177a82742c0c4c54359e98aa

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

module FreshConnection
  module Extend
    module ArAbstractAdapter
      def self.prepended(base)
        base.send :attr_writer, :slave_group
      end

      def log(*args)
        args[1] = "[#{@slave_group}] #{args[1]}" if @slave_group
        super
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fresh_connection-2.0.0 lib/fresh_connection/extend/ar_abstract_adapter.rb