Remove #to_sym calls from Drop and Variable

Symbols are not needed here and using plain strings is nicer on Ruby
This commit is contained in:
Jason Roelofs
2013-01-16 09:46:17 -05:00
parent c3e6cde67f
commit 7bcb565668
3 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -31,8 +31,8 @@ module Liquid
# called by liquid to invoke a drop
def invoke_drop(method_or_key)
if method_or_key && method_or_key != EMPTY_STRING && self.class.public_method_defined?(method_or_key.to_s.to_sym)
send(method_or_key.to_s.to_sym)
if method_or_key && method_or_key != EMPTY_STRING && self.class.public_method_defined?(method_or_key.to_s)
send(method_or_key.to_s)
else
before_method(method_or_key)
end