Module: ActiveRecordShards::DefaultReplicaPatches::AssociationsAssociationAssociationScopePatch
- Defined in:
- lib/active_record_shards/default_replica_patches.rb
Instance Method Summary collapse
Instance Method Details
#association_scope ⇒ Object
| 159 160 161 162 163 164 165 | # File 'lib/active_record_shards/default_replica_patches.rb', line 159 def association_scope if klass on_replica_unless_tx { super } else super end end | 
#on_replica_unless_tx ⇒ Object
| 167 168 169 | # File 'lib/active_record_shards/default_replica_patches.rb', line 167 def on_replica_unless_tx klass.on_replica_unless_tx { yield } end |