lib/brief/repository.rb in brief-1.8.9 vs lib/brief/repository.rb in brief-1.8.10

- old
+ new

@@ -112,9 +112,13 @@ def document_paths Dir[docs_path.join('**/*.md').to_s].map { |p| Pathname(p) } end + def model_classes + all_models.compact.map(&:class).uniq + end + def all_models @all_models ||= begin list = documents.select(&:refresh!).map(&:to_model) list.compact! list.select!(&:exists?)