Sha256: e2d826f25e5c94c3807cbe4bdd61f0524076288cf8a413bd948cbcafaafb0463

Contents?: true

Size: 293 Bytes

Versions: 8

Compression:

Stored size: 293 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 defined?(@slave_group)
        super
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fresh_connection-2.2.0 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.1.2 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.1.1 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.1.0 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.0.4 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.0.3 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.0.2 lib/fresh_connection/extend/ar_abstract_adapter.rb
fresh_connection-2.0.1 lib/fresh_connection/extend/ar_abstract_adapter.rb