mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Fix exception from using an empty string for the table row collection.
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ module Liquid
|
||||
index = 0
|
||||
|
||||
# Maintains Ruby 1.8.7 String#each behaviour on 1.9
|
||||
return [collection] if non_blank_string?(collection)
|
||||
return collection != ''.freeze ? [collection] : [] if collection.is_a?(String)
|
||||
|
||||
collection.each do |item|
|
||||
if to && to <= index
|
||||
|
||||
Reference in New Issue
Block a user