From 94a1330d6114a27ece909e06e05770988cc6172d Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Wed, 8 Oct 2014 12:47:17 -0700 Subject: [PATCH] Revert "Allow Enumerables to be used with "where" filter" --- lib/jekyll/filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/filters.rb b/lib/jekyll/filters.rb index 7d5ba982..d6f0fa03 100644 --- a/lib/jekyll/filters.rb +++ b/lib/jekyll/filters.rb @@ -219,7 +219,7 @@ module Jekyll # # Returns the filtered array of objects 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 } end