Array.wrap stopped working

Hi,

We had a mocked API with this statement in the handler script which now stopped working.

records = Array.wrap(generate params[‘count’])

It returns

undefined method `value’ for true:TrueClass

Does anyone have any ideas why this stopped working?

We had forced output of generate into an array regardless if count is 1 or not, which returns hash, as we have statements after generate which iterate array to set values in generated data set fields from query parameters.

Thanks.