Showing the changes to lib (1 of 4 files). Show all
Unified · Split
| @@ -26,12 +26,17 @@ module Docs · 25 unmodified lines | |||
| 26 | File.join path, INDEX_FILENAME | 26 | File.join path, INDEX_FILENAME |
| 27 | end | 27 | end |
| 28 | 28 | ||
| 29 | def db_path | ||
| 30 | File.join path, DB_FILENAME | ||
| 31 | end | ||
| 32 | |||
| 29 | def as_json | 33 | 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 | end | 40 | end |
| 36 | 41 | ||
| 37 | def store_page(store, id) | 42 | def store_page(store, id) |