Pollenware/patio — pull request #39 by mbenedettini (2012-08-14 23:32:20+00:00)
Title: Custom getters

This feature allows you to put a custom getter to make some transformation to the returning value before it is actually returned. The syntax and concept is similar to custom setters.

Example:

var User = patio.addModel("user", {
instance : {
_getFirstName : function(firstName){
// First name must be returned as uppercase
return firstName.toUpperCase();
}
}
});