mirror of
https://github.com/jekyll/jekyll.git
synced 2026-01-31 01:38:24 -05:00
Merge pull request #2980 from tamagokun/patch-1
This commit is contained in:
@@ -219,7 +219,7 @@ module Jekyll
|
||||
#
|
||||
# Returns the filtered array of objects
|
||||
def where(input, property, value)
|
||||
return input unless input.is_a?(Array)
|
||||
return input unless input.is_a?(Enumerable)
|
||||
input.select { |object| item_property(object, property) == value }
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user