treat ActiveRecord::Relation as Array

https://github.com/neubloc/cancan/commit/48f6946a8d521cb8abc1bc480a1e83fc3b823103