lib/brief/repository.rb in brief-1.8.2 vs lib/brief/repository.rb in brief-1.8.3
- old
+ new
@@ -14,9 +14,13 @@
@options = options
load_documents
end
+ def cache_key
+ "#{documents.count}-#{documents.map {|d| d.path.mtime.to_i }.max}"
+ end
+
def respond_to?(meth)
super || model_groups.include?(meth.to_s)
end
def method_missing(meth, *args, &block)