treat ActiveRecord::Relation as Array - from chrosciu