Adds ability to specify a function as the defaultsTo property for model attributes. Calls in context of the model itself.