Revert "Allow Enumerables to be used with "where" filter"
This commit is contained in:
parent
13919b4f3c
commit
94a1330d61
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue