1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

Ruby 2.1- compatibility

This commit is contained in:
Takashi Kokubun 2015-11-29 16:45:33 +09:00
parent 114e80d4e0
commit 158cfd6f03

View file

@ -187,7 +187,7 @@ flatten_data_attrs_i2(VALUE k, VALUE v, VALUE ptr)
rb_hash_aset(arg->flattened, arg->key, v);
} else {
key = rb_str_dup(arg->key);
rb_str_cat_cstr(key, "-");
rb_str_cat(key, "-", 1);
rb_str_concat(key, to_s(k));
rb_hash_aset(arg->flattened, key, v);