Support rendering symbols as strings

This commit is contained in:
Justin Li
2017-08-17 23:10:57 -04:00
parent 59162f7a0e
commit bf3e759da3
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -7,6 +7,12 @@ class String # :nodoc:
end
end
class Symbol # :nodoc:
def to_liquid
to_s
end
end
class Array # :nodoc:
def to_liquid
self