Guest User

Untitled

a guest
May 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. def collect_users(id, array)
  2. n = []
  3. id.each { |i|
  4. n << Session.find(:all, :conditions => [ "supervisor = ?", i ])
  5. }
  6. n.each { |i|
  7. array << collect_users(i.id, array)
  8. }
  9. end
Add Comment
Please, Sign In to add comment