Fix mapping over proc attributes

This commit is contained in:
Guillaume Malette
2015-11-20 13:04:42 -05:00
parent 5f8086572b
commit 0b55d09cea
2 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -173,7 +173,8 @@ module Liquid
if property == "to_liquid".freeze
e
elsif e.respond_to?(:[])
e[property]
r = e[property]
r.is_a?(Proc) ? r.call : r
end
end
end