Prevent Range usage in templates from blowing up

This commit is contained in:
Gaurav Chande
2016-06-02 16:38:44 -04:00
parent e4cf55b112
commit 00f53b16e8
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -25,6 +25,12 @@ class Numeric # :nodoc:
end
end
class Range # :nodoc:
def to_liquid
self
end
end
class Time # :nodoc:
def to_liquid
self