Merge pull request #2985 from jekyll/revert-2980-patch-1

Revert "Allow Enumerables to be used with "where" filter"
This commit is contained in:
Parker Moore 2014-10-08 12:47:25 -07:00
commit 8cc07231df
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ module Jekyll
# #
# Returns the filtered array of objects # Returns the filtered array of objects
def where(input, property, value) def where(input, property, value)
return input unless input.is_a?(Enumerable) return input unless input.is_a?(Array)
input.select { |object| item_property(object, property) == value } input.select { |object| item_property(object, property) == value }
end end