From c065f1e4ee9ca3e915d279db6c5047427c76d6b6 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Thu, 7 Feb 2013 06:56:42 +0900 Subject: [PATCH] Isn't this intending to check if names.is_a?(Hash) :question: --- lib/haml/compiler.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/haml/compiler.rb b/lib/haml/compiler.rb index 01118525..6bfe1c35 100755 --- a/lib/haml/compiler.rb +++ b/lib/haml/compiler.rb @@ -78,7 +78,7 @@ END end def locals_code(names) - names = names.keys if Hash == names + names = names.keys if Hash === names names.map do |name| # Can't use || because someone might explicitly pass in false with a symbol