@JordiPolo well, merge_if_hash or something like that doesn't reflect what that method does. Yes, it merges hash, but the main purpose to add 'type' attribute.