mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Fix regression with calling a drop with a empty string
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ module Liquid
|
||||
|
||||
# called by liquid to invoke a drop
|
||||
def invoke_drop(method_or_key)
|
||||
if self.class.public_method_defined?(method_or_key.to_s.to_sym)
|
||||
if method_or_key != '' && self.class.public_method_defined?(method_or_key.to_s.to_sym)
|
||||
send(method_or_key.to_s.to_sym)
|
||||
else
|
||||
before_method(method_or_key)
|
||||
|
||||
Reference in New Issue
Block a user