Closed vivien closed 11 years ago
Oh Virtus can't handle such cases. I wouldn't recommend extending core ruby classes (esp if they have interfaces clashing with virtus).
You'd be better off wrapping a hash in your own virtus-extended object.
I'm going to close this one.
As the Virtus attributes are a different set of properties, I don't know if this is a bug or a design choice, so I just report it.
It sounds like #[] is overridden but the keys/values are not updated. As I need to get a "smart hash", I ended up using:
To make things move forward, we may answer this: should Virtus be object-agnostic or should it care about the object it extends?
Cheers, Vivien