fix for CollectionProxy not acting like an Array in Rails4