LearnBoost/mongoose — pull request #924 by aheckmann (2012-05-20 01:17:55+00:00)
Title: Fix getters/setters

1) Currently casting values during `set` happens too soon. Users should be able to 'decode' formats within a setter before the resulting value is cast. Today casting happens after each setter executes. Now it will be cast one time after all setters complete. (#665)

2) Today `getter` casting happens too soon as well. Users should be able to return a formatted value however they wish within a getter. For example, prepending a number with a '$' to format currency would be useful. (#820)

3) Exposes subdocument constructors through `MongooseDocumentArray#create()`.