From 676261b5a7cb67a6619be7ced2c1e5ace04533b8 Mon Sep 17 00:00:00 2001 From: francis Date: Tue, 29 Apr 2008 16:42:11 +0000 Subject: Make destroying Xapian records work. --- app/models/info_request.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/models/info_request.rb') diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 97bb2e927..99312986d 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -21,7 +21,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.97 2008-04-29 16:23:31 francis Exp $ +# $Id: info_request.rb,v 1.98 2008-04-29 16:42:11 francis Exp $ require 'digest/sha1' require 'vendor/plugins/acts_as_xapian/lib/acts_as_xapian' @@ -450,10 +450,10 @@ public track_thing.track_things_sent_emails.each { |a| a.destroy } track_thing.destroy end - self.incoming_messages.each { |a| a.destroy } - self.outgoing_messages.each { |a| a.destroy } self.user_info_request_sent_alerts.each { |a| a.destroy } self.info_request_events.each { |a| a.destroy } + self.incoming_messages.each { |a| a.destroy } + self.outgoing_messages.each { |a| a.destroy } self.destroy end -- cgit v1.2.3