I have had the same issue with equality. I ended up letting Struct solve the equality issues for me. This preserves equality for usage with arrays, hash (keys), sets etc..
The example below decorates ServiceType with start_date & end_date from another model:
I have had the same issue with equality. I ended up letting Struct solve the equality issues for me. This preserves equality for usage with arrays, hash (keys), sets etc..
The example below decorates ServiceType with start_date & end_date from another model: