Fix exception from using an empty string for the table row collection.

This commit is contained in:
Dylan Thacker-Smith
2015-05-28 12:11:39 -04:00
parent 3264d60425
commit e790b60f60
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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