aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-01-02 00:20:52 +0000
committerfrancis <francis>2009-01-02 00:20:52 +0000
commitbcc27a0dd2fc1127fba0f6c2a3978ef75636f350 (patch)
tree39e975b7c57f55770a68c198a06c54686f4dbd02 /app/models/info_request.rb
parent8e077f2b185ff77472b000a711504644ef8fa4a4 (diff)
Destroy outgoing before incoming, as can refer to them
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 5edc84368..06d5531a0 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -23,7 +23,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request.rb,v 1.158 2008-12-17 13:19:15 francis Exp $
+# $Id: info_request.rb,v 1.159 2009-01-02 00:20:52 francis Exp $
require 'digest/sha1'
require File.join(File.dirname(__FILE__),'../../vendor/plugins/acts_as_xapian/lib/acts_as_xapian')
@@ -672,8 +672,8 @@ public
info_request_event.track_things_sent_emails.each { |a| a.destroy }
info_request_event.destroy
end
- self.incoming_messages.each { |a| a.destroy }
self.outgoing_messages.each { |a| a.destroy }
+ self.incoming_messages.each { |a| a.destroy }
self.destroy
end