argument to t.index can be an array

in my code base they are always an array but I presume different versions of rails may handle that differently,
but fix should work in both cases (no unit test added, but works locally)