mirror of
https://github.com/kemko/liquid.git
synced 2026-01-07 02:35:40 +03:00
Fix internal liquid error when comparing hash with incompatible type (#849)
This commit is contained in:
committed by
GitHub
parent
ffb0ace303
commit
2bb3552033
@@ -110,7 +110,7 @@ module Liquid
|
||||
|
||||
if operation.respond_to?(:call)
|
||||
operation.call(self, left, right)
|
||||
elsif left.respond_to?(operation) && right.respond_to?(operation)
|
||||
elsif left.respond_to?(operation) && right.respond_to?(operation) && !left.is_a?(Hash) && !right.is_a?(Hash)
|
||||
begin
|
||||
left.send(operation, right)
|
||||
rescue ::ArgumentError => e
|
||||
|
||||
Reference in New Issue
Block a user