Sha256: 55a0e8aeee3debd96ebe4a93aad450d80fb6bb5ecbb7c8f458637194b1025a94
Contents?: true
Size: 475 Bytes
Versions: 5
Compression:
Stored size: 475 Bytes
Contents
require 'switchman/sharded_instrumenter' module Switchman module ActiveRecord module AbstractAdapter attr_writer :shard def shard @shard || Shard.default end def initialize_with_shard(*args) initialize_without_shard(*args) @instrumenter = Switchman::ShardedInstrumenter.new(@instrumenter, self) end def self.included(klass) klass.alias_method_chain :initialize, :shard end end end end
Version data entries
5 entries across 5 versions & 1 rubygems