Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created October 22, 2012 21:27
Show Gist options
  • Select an option

  • Save Heavyblade/3934516 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/3934516 to your computer and use it in GitHub Desktop.
user = User.where(:email => "ron.evans@gmail.com")
user.projects.each { |project| project.trackers.each { |tr| tr.enable!; tr.perform_options.update_attributes(:valid_auth => true, :failed_count => 0); tr.tracked_projects { |tr_p| tr_p.update_attributes(:retry_count => 0) }}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment