Refactor docs_to_write

This commit is contained in:
Parker Moore 2014-05-04 21:22:57 -04:00
parent 54b74fafba
commit fc98f06ed7
1 changed files with 1 additions and 7 deletions

View File

@ -407,13 +407,7 @@ module Jekyll
end
def docs_to_write
collections.reduce(Set.new) do |docs, (_, collection)|
if collection.write?
docs.merge(collection.docs)
else
docs
end
end
documents.select(&:write?)
end
def documents