Module: ActiveRecordShards::DefaultReplicaPatches::InstanceMethods

Defined in:
lib/active_record_shards/default_replica_patches.rb

Instance Method Summary collapse

Instance Method Details

#on_replica_unless_txObject



61
62
63
# 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) ⇒ Object

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



57
58
59
# File 'lib/active_record_shards/default_replica_patches.rb', line 57

def quote_value(*args, &block)
  self.class.quote_value(*args, &block)
end