class ActiveRecord::Middleware::DatabaseSelector::Resolver
def read(&blk)
def read(&blk) if read_from_primary? read_from_primary(&blk) else read_from_replica(&blk) end end
def read(&blk) if read_from_primary? read_from_primary(&blk) else read_from_replica(&blk) end end