diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-02-01 00:19:18 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-02-01 00:19:18 +0000 |
commit | c2b7fee0941a3826e77e12f4c4098809ad813aee (patch) | |
tree | f80f21d4fb5703f6006c104b7da8bf42f6ccdded | |
parent | 33f8ef66084bbfb61bf0b4e0f53e1da5e7cc84dc (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.rb | 2 |
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}" |