solnic/virtus — Issue #32: how can default values be set based on private attributes
Author: senny
Created: 2011-11-14 18:08:58+00:00
State: open

I noticed that the current implementation of default values passes in self to give the Proc access to it's attributes. Since it is possible to have private attributes, how would you make defaults based on these attributes without having to reach out to `send`?

It would be an option to evaluate the Block in the context of the record to get direct access to the attributes.