aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-04-23 10:22:10 +0000
committerfrancis <francis>2009-04-23 10:22:10 +0000
commit01f49e12ca1310d11d8f8afe0075951727ca83d8 (patch)
tree8783d03be5bd740ed264c8e0e3406b0027f88974 /app/models/user.rb
parent990d3e25111682cb409711b4e01a9381a23cec11 (diff)
Only need to do this reindexing on updates, not initial save during creation of object.
Diffstat (limited to 'app/models/user.rb')
-rw-r--r--app/models/user.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index d48e2975d..b69780ae2 100644
--- a/app/models/user.rb
+++ b/app/models/user.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: user.rb,v 1.93 2009-04-22 01:00:23 francis Exp $
+# $Id: user.rb,v 1.94 2009-04-23 10:22:10 francis Exp $
require 'digest/sha1'
@@ -72,7 +72,7 @@ class User < ActiveRecord::Base
end
# requested_by: and commented_by: search queries also need updating after save
- after_save :reindex_referencing_models
+ after_update :reindex_referencing_models
def reindex_referencing_models
return if no_xapian_reindex == true