History

Add Doc#db_path

Thibaut committed 11 years ago

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

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

Unified · Split

lib/docs/core/doc.rb+6−1
@@ -26,12 +26,17 @@ module Docs · 25 unmodified lines
2626 File.join path, INDEX_FILENAME
2727 end
2828
29+ def db_path
30+ File.join path, DB_FILENAME
31+ end
32+
2933 def as_json
3034 { name: name,
3135 slug: slug,
3236 type: type,
3337 version: version,
34− index_path: index_path }
38+ index_path: index_path,
39+ db_path: db_path }
3540 end
3641
3742 def store_page(store, id)