app/models/canvas/add_new_users.rb
# Split UID array into sets of 1000
Split UID array into sets of 1000
Split UID array into sets of 1000
def split_uid_array(uid_array)
      return [uid_array] if uid_array.count < 1001
      split_array = []
      while uid_array.count > 0  do
        split_array << uid_array.slice!(0, 1000)
      end
      return split_array
    end
def split_uid_array ( uid_array ) return [ uid_array ] if uid_array . count < 1001 split_array = [ ] while uid_array . count > 0 do split_array << uid_array . slice! ( 0 , 1000 ) end return split_array end
Split UID array into sets of 1000
Split UID array into sets of 1000
uid_array