Scripler / scripler

The Scripler web application source code repository
Do What The F*ck You Want To Public License
5 stars 1 forks source link

Backend: Document which functions require populated model objects #144

Open mortengf opened 10 years ago

mortengf commented 10 years ago

Styleset/Style.isPopulated() functions now exist: use this function where appropriate.

mortengf commented 10 years ago

Allan has implemented public/create/scripts/utils-shared.js:mongooseEquals() that can take an ObjectId, _id string, or complete Mongoose object as input which is used for all comparisons of Mongoose model objects.

So this issue is now only about documenting whether the Styleset.copy() and Style.copy() functions need populated model objects as input (and maybe changing how they are called to be consistent).