Merge pull request #462 from Shopify/flat_map

nodelist flat_map over map.flatten
This commit is contained in:
Florian Weingarten
2014-10-17 18:32:00 +02:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ module Liquid
end
def nodelist
@blocks.map(&:attachment).flatten
@blocks.flat_map(&:attachment)
end
def unknown_tag(tag, markup, tokens)
+1 -1
View File
@@ -21,7 +21,7 @@ module Liquid
end
def nodelist
@blocks.map(&:attachment).flatten
@blocks.flat_map(&:attachment)
end
def unknown_tag(tag, markup, tokens)