Update model.js

Add `extend()` method to API docs.
This commit is contained in:
Rand McKinney 2015-04-28 10:06:14 -07:00
parent b9493cdb45
commit 242bcec539
1 changed files with 4 additions and 2 deletions

View File

@ -99,8 +99,10 @@ module.exports = function(registry) {
Model.registry = registry;
/*!
* Called when a model is extended.
/**
* The `loopback.Model.extend()` method calls this when you create a model that extends another model.
* Add any setup or configuration code you want executed when the model is created.
* See [Setting up a custom model](http://docs.strongloop.com/display/LB/Extending+built-in+models#Extendingbuilt-inmodels-Settingupacustommodel).
*/
Model.setup = function() {