mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
flat_map
This commit is contained in:
@@ -15,7 +15,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def nodelist
|
||||
@blocks.map(&:attachment).flatten
|
||||
@blocks.flat_map(&:attachment)
|
||||
end
|
||||
|
||||
def unknown_tag(tag, markup, tokens)
|
||||
|
||||
@@ -21,7 +21,7 @@ module Liquid
|
||||
end
|
||||
|
||||
def nodelist
|
||||
@blocks.map(&:attachment).flatten
|
||||
@blocks.flat_map(&:attachment)
|
||||
end
|
||||
|
||||
def unknown_tag(tag, markup, tokens)
|
||||
|
||||
Reference in New Issue
Block a user