Created
January 24, 2012 23:01
-
-
Save ryankshaw/1673300 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
run this in script/console and tell me (ryan) if there there are any errors