Good to see Array.wrap get added. However it doesn't DWIM with associations:
=> [[#<Register ...>]]
=> [[#<DisputedRead ...>, #<DisputedRead ...>]]
ie. array-like collections and scopes aren't getting treated as arrays
and are being wrapped again.
The short-term solution the coder who hit this suggested was to add a
case to the #wrap:
But this has the effect of loading ActiveRecord from ActiveSupport,
which is undesirable. Is there a better way to detect
I'm thinking that it might be better to check for the #to_ary method
on all objects and use that instead, without having a special case for
collections/scopes. Does that sound OK? If so I'll submit a patch.