fix can't convert Fixnum into String

This commit is contained in:
wǒ_is神仙
2013-02-06 12:55:35 +08:00
parent 50bd34fd78
commit 6e967f7f3a
+2 -2
View File
@@ -102,12 +102,12 @@ module Liquid
# Replace occurrences of a string with another
def replace(input, string, replacement = '')
input.to_s.gsub(string, replacement)
input.to_s.gsub(string, replacement.to_s)
end
# Replace the first occurrences of a string with another
def replace_first(input, string, replacement = '')
input.to_s.sub(string, replacement)
input.to_s.sub(string, replacement.to_s)
end
# remove a substring