src code

instance method ActiveRecord.ResultSet#toArray

ActiveRecord.ResultSet#toArray() → Array

Builds an array calling toObject() on each instance in the result set, thus reutrning a vanilla array of vanilla objects.