Skip to content

Commit

Permalink
Check by RB_TYPE_P
Browse files Browse the repository at this point in the history
  • Loading branch information
eagletmt committed Feb 16, 2015
1 parent 55e7cb5 commit d4322ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/attribute_builder/attribute_builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ build_attribute(VALUE attr_quote, VALUE key, VALUE value)
}
return put_attribute(attr_quote, key, rb_ary_join(ary, rb_str_new_cstr("_")));
}
} else if (value == Qtrue) {
} else if (RB_TYPE_P(value, T_TRUE)) {
VALUE attr = rb_str_new_cstr(" ");
rb_str_concat(attr, key);
return attr;
Expand Down

0 comments on commit d4322ce

Please sign in to comment.