method

connected_to_all_shards

rails latest stable - Class: ActiveRecord::ConnectionHandling

Method not available on this version

This method is only available on newer versions. The first available version (v8.0.0) is shown here.

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.