johnhof/IceBuddy — pull request #29 by DuaneGarber (2014-12-28 03:39:22+00:00)
Title: Stats CRUD + Unit Tests

@johnhof Here is the stats model + CRUD

Take aways:
I moved the mongoose functions to static methods on the model
-- CON: This bloats the model
-- PRO: Now the core functionality is accessible from the object rather than a route

We can really think of models as a "Class"