lib/ruote/parser.rb in ruote-2.1.9 vs lib/ruote/parser.rb in ruote-2.1.10

- old
+ new

@@ -102,10 +102,11 @@ atts = tree[1].dup t = atts.find { |k, v| v == nil } if t atts.delete(t.first) - atts['ref'] = t.first + key = tree[0] == 'if' ? 'test' : 'ref' + atts[key] = t.first end atts = atts.inject({}) { |h, (k, v)| h[k.to_s.gsub(/\_/, '-')] = v; h } if tree[2].empty?