lib/milkode/cdweb/lib/database.rb in milkode-0.6.2 vs lib/milkode/cdweb/lib/database.rb in milkode-0.6.3
- old
+ new
@@ -48,9 +48,10 @@
@documents = Groonga::Context.default["documents"]
end
def record(shortpath)
+ reopen_patch
table = @documents.select { |record| record.shortpath == shortpath }
return table.records[0]
end
def search(patterns, packages, current_path, fpaths, suffixs, offset = 0, limit = -1)