Fix another drop call regression

This commit is contained in:
Jonathan Rudenberg
2011-10-14 11:21:22 -04:00
parent f129ee33f2
commit 487b240404
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ module Liquid
# called by liquid to invoke a drop
def invoke_drop(method_or_key)
if method_or_key != '' && self.class.public_method_defined?(method_or_key.to_s.to_sym)
if method_or_key && 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)