Skip to content

Commit

Permalink
Update blueprint-api.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rachaelshaw committed Sep 11, 2015
1 parent 135be2d commit e21793a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/blueprint-api/blueprint-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ See the [blueprints subsection of the configuration reference](http://sailsjs.or

Blueprint actions (not to be confused with blueprint action *routes*) are generic actions designed to work with any of your controllers that have a model of the same name (e.g. `ParrotController` would need a `Parrot` model). Think of them as the default behavior for your application. For instance, if you have a `User.js` model and an empty `UserController.js` controller, `find`, `create`, `update`, `destroy`, `populate`, `add` and `remove` actions exist implicitly, without you having to write them.

By default, the blueprint RESTful routes and shortcut routes are bound to their corresponding blueprint actions. However, any blueprint action can be overridden for a particular controller by creating a custom action in that controller file (e.g. `ParrotController.find`). Alternatively, you can override the blueprint action _everywhere in your app_ by creating your own [custom blueprint action](http://sailsjs.org/documentation/guides/customBlueprints). (e.g. `api/blueprints/create.js`).
By default, the blueprint RESTful routes and shortcut routes are bound to their corresponding blueprint actions. However, any blueprint action can be overridden for a particular controller by creating a custom action in that controller file (e.g. `ParrotController.find`). Alternatively, you can override the blueprint action _everywhere in your app_ by creating your own custom blueprint action. (e.g. `api/blueprints/create.js`).

The current version of Sails ships with the following blueprint actions:

Expand Down

0 comments on commit e21793a

Please sign in to comment.