System notice: In light of the Debian OpenSSL security issue we've regenerated the server keys. See this thread for instructions and the new key fingerprints.

Commit 5e61707eeed61828047c8ba882e04fa694ede4f4

Prefer String#constantize over eval

Commit diff

script/destroy_invalid_events

 
55
66Event.find(:all).each do |event|
77 begin
8 eval("#{event.target_type}").find(event.target_id)
8 event.target_type.constantize.find(event.target_id)
99 Project.find(event.project_id)
1010 rescue ActiveRecord::RecordNotFound
1111 puts "Destroying invalid event '#{event.id}:#{Action.name(event.action)}'"
toggle raw diff