Skip to content

Instantly share code, notes, and snippets.

@jasonblanchard
Last active August 29, 2015 14:04
Show Gist options
  • Select an option

  • Save jasonblanchard/536c2ac45e9d22c399fe to your computer and use it in GitHub Desktop.

Select an option

Save jasonblanchard/536c2ac45e9d22c399fe to your computer and use it in GitHub Desktop.
@mm = MiniMeet.find('5399f026dc8c101cd800014e')
first_count = @mm.participants.count
@mm.participants.each do |participant|
submission = @mm.get_user_submission(participant.id)
@mm.review_module.get_ranking_and_score(submission)
end
puts "\n\n\nBefore the loop, @mm.participants is: #{first_count}"
puts "After the loop, @mm.participants is: #{@mm.participants.count}\n\n\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment