lib/brief/document.rb in brief-1.7.2 vs lib/brief/document.rb in brief-1.7.3

- old
+ new

@@ -104,9 +104,14 @@ frontmatter end def in_briefcase(briefcase) @briefcase_root = briefcase.root + + unless Brief::Util.ensure_child_path(briefcase.docs_path, path) + raise 'Invalid document path' + end + self end def briefcase (@briefcase_root && Brief.cases[@briefcase_root]) || Brief.case