Showing the changes to lib (1 of 4 files). Show all
Unified · Split
| @@ -26,12 +26,17 @@ module Docs · 25 unmodified lines | ||
| 26 | 26 | File.join path, INDEX_FILENAME |
| 27 | 27 | end |
| 28 | 28 | |
| 29 | + def db_path | |
| 30 | + File.join path, DB_FILENAME | |
| 31 | + end | |
| 32 | + | |
| 29 | 33 | def as_json |
| 30 | 34 | { name: name, |
| 31 | 35 | slug: slug, |
| 32 | 36 | type: type, |
| 33 | 37 | version: version, |
| 34 | − index_path: index_path } | |
| 38 | + index_path: index_path, | |
| 39 | + db_path: db_path } | |
| 35 | 40 | end |
| 36 | 41 | |
| 37 | 42 | def store_page(store, id) |