Permalink
Browse files

fix `can't convert Fixnum into String`

  • Loading branch information...
1 parent 50bd34f commit 6e967f7f3a26447f5a5708031ee8327635f3598c @jsw0528 jsw0528 committed Feb 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/liquid/standardfilters.rb
@@ -102,12 +102,12 @@ def map(input, property)
# 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

0 comments on commit 6e967f7

Please sign in to comment.