Revert some freezes on non-literals

This commit is contained in:
Florian Weingarten
2014-01-27 14:56:07 -05:00
parent 43ac8d560b
commit 0a7de51e2b
6 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ module Liquid
end
def inspect
"#<Condition #{[@left, @operator, @right].compact.join(' '.freeze)}>".freeze
"#<Condition #{[@left, @operator, @right].compact.join(' '.freeze)}>"
end
private
@@ -94,7 +94,7 @@ module Liquid
left, right = context[left], context[right]
operation = self.class.operators[op] || raise(ArgumentError.new("Unknown operator #{op}".freeze))
operation = self.class.operators[op] || raise(ArgumentError.new("Unknown operator #{op}"))
if operation.respond_to?(:call)
operation.call(self, left, right)