lib/brief/repository.rb in brief-1.1.0 vs lib/brief/repository.rb in brief-1.2.0
- old
+ new
@@ -38,10 +38,10 @@
Brief::Document.new(path)
end
end
def document_paths
- Dir[root.join("**/*.md").to_s]
+ Dir[root.join("**/*.md").to_s].map {|p| Pathname(p) }
end
def self.define_document_finder_methods
# Create a finder method on the repository
# which lets us find instances of models by their class name