module ActiveRecordShards::DefaultReplicaPatches::AssociationsPreloaderAssociationAssociatedRecordsByOwnerPatch

Public Instance Methods

associated_records_by_owner(preloader) click to toggle source
Calls superclass method
# File lib/active_record_shards/default_replica_patches.rb, line 228
def associated_records_by_owner(preloader)
  if klass
    on_replica_unless_tx { super }
  else
    super
  end
end
on_replica_unless_tx() { || ... } click to toggle source
# File lib/active_record_shards/default_replica_patches.rb, line 236
def on_replica_unless_tx
  klass.on_replica_unless_tx { yield }
end