aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-02-01 00:19:18 +0000
committerRobin Houston <robin.houston@gmail.com>2012-02-01 00:19:18 +0000
commitc2b7fee0941a3826e77e12f4c4098809ad813aee (patch)
treef80f21d4fb5703f6006c104b7da8bf42f6ccdded
parent33f8ef66084bbfb61bf0b4e0f53e1da5e7cc84dc (diff)
Revert small unintended change
Revert a small part of 33f8ef66084bbfb61bf0b4e0f53e1da5e7cc84dc, which was not intended, so that the behaviour is unchanged if a xapian database doesn’t exist, say.
-rw-r--r--vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb2
1 files changed, 1 insertions, 1 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 157bdcff2..d5c0e89c6 100644
--- a/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
+++ b/vendor/plugins/acts_as_xapian/lib/acts_as_xapian.rb
@@ -126,10 +126,10 @@ module ActsAsXapian
if !@@db.nil?
@@db.close
end
- @@db = Xapian::Database.new(@@db_path)
# basic Xapian objects
begin
+ @@db = Xapian::Database.new(@@db_path)
@@enquire = Xapian::Enquire.new(@@db)
rescue IOError => e
raise "Failed to open Xapian database #{@@db_path}: #{e.message}"