History

Add Doc#db_path

Thibaut committed 11 years ago

Commit ca61a2b1 parent 5c46eab4 files · +21 −4Browse files

Showing the changes to lib (1 of 4 files). Show all

Unified · Split

lib/docs/core/doc.rb+6−1
@@ -26,12 +26,17 @@ module Docs · 25 unmodified lines
26 File.join path, INDEX_FILENAME26 File.join path, INDEX_FILENAME
27 end27 end
28 28
29 def db_path
30 File.join path, DB_FILENAME
31 end
32
29 def as_json33 def as_json
30 { name: name,34 { name: name,
31 slug: slug,35 slug: slug,
32 type: type,36 type: type,
33 version: version,37 version: version,
34 index_path: index_path }38 index_path: index_path,
39 db_path: db_path }
35 end40 end
36 41
37 def store_page(store, id)42 def store_page(store, id)