lib/brief/model.rb in brief-1.9.13 vs lib/brief/model.rb in brief-1.9.14

- old
+ new

@@ -126,10 +126,12 @@ def accessor_property_names (definition.content_schema.attributes.keys + definition.metadata_schema.keys).uniq end + # Looks to see if there is a documentation markdown file for the model + # and if so, will return the documentation info as a Hash def to_documentation docs = definition.documentation path = if docs.markdown Pathname(docs.markdown) @@ -141,10 +143,11 @@ if path model_doc = Brief::Briefcase::Documentation::ModelDoc.new(path) { content: model_doc.content, - rendered: model_doc.rendered + rendered: model_doc.rendered, + path: path } else { } end end