module ActiveRecordShards::DefaultReplicaPatches::InstanceMethods

Public Instance Methods

on_replica_unless_tx() { || ... } click to toggle source
# File lib/active_record_shards/default_replica_patches.rb, line 61
def on_replica_unless_tx
  self.class.on_replica_unless_tx { yield }
end
quote_value(*args, &block) click to toggle source

fix ActiveRecord to do the right thing, and use our aliased quote_value

# File lib/active_record_shards/default_replica_patches.rb, line 57
def quote_value(*args, &block)
  self.class.quote_value(*args, &block)
end