diff options
author | francis <francis> | 2008-09-15 16:06:46 +0000 |
---|---|---|
committer | francis <francis> | 2008-09-15 16:06:46 +0000 |
commit | 3a5506de8893280c8889c17c675f85c73b420390 (patch) | |
tree | e3b0447cb53b0c384286aed1d965e512e4b43c36 | |
parent | 5474c01d1b41b2f43322dcde725794b5efe5bfb9 (diff) |
From github
-rw-r--r-- | vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb index 3babcbd5d..0de80c24b 100644 --- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb +++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb @@ -113,8 +113,10 @@ module ActsAsXapian raise "acts_as_xapian hasn't been called in any models" if @@init_values.empty? # if DB is not nil, then we're already initialised, so don't do it again - # XXX we need to reopen! - #return unless @@db.nil? + # XXX we need to reopen the database each time, so Xapian gets changes to it. + # Hopefully in later version of Xapian it will autodetect this, and this can + # be commented back in again. + # return unless @@db.nil? prepare_environment |