So ActiveRecord has a find_in_batches
method that will let you process table results in small groups instead of retrieving all the records from the database at once, but it sounds like you just want to avoid having to write loops to group your records into the array format that you want.
If that is the case, you can actually do that easily using the Enumerable#each_slice
method:
User.all.each_slice(2).to_a