Skip to content

Instantly share code, notes, and snippets.

@ritch
ritch / rfc.md
Created July 30, 2015 19:03
Next Generation of Model and Boot Scripts

Model and Boot Scripts

Currently, model scripts and the way they are loaded are a bit naive.

Take a look at this example:

// models/my-model.js
module.exports = function(MyModel) {
  MyModel.findFooBars = function(filter, cb) {