Quantcast
Channel: Mockaroo Community Forum - Latest posts
Viewing all articles
Browse latest Browse all 2665

Array.wrap stopped working

$
0
0

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.


Viewing all articles
Browse latest Browse all 2665

Trending Articles