method
connected_to_all_shards
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionHandling
connected_to_all_shards(role: nil, prevent_writes: false, &blk)public
Passes the block to connected_to for every shard the model is configured to connect to (if any), and returns the results in an array.
Optionally, role and/or prevent_writes can be passed which will be forwarded to each connected_to call.