Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ryankshaw/1673300 to your computer and use it in GitHub Desktop.

Select an option

Save ryankshaw/1673300 to your computer and use it in GitHub Desktop.
errors = []
ErrorReport.find_each(:conditions => "user_id is not null and created_at > '2012-01-24' AND email='[email protected]'") do |report|
if report.comments.present?
puts "resending error report #{report.id}"
report.email = nil
begin
report.send_to_external
rescue Exception => e
puts e.to_json
errors << e
end
end
end
errors
@ryankshaw
Copy link
Copy Markdown
Author

run this in script/console and tell me (ryan) if there there are any errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment