Created
November 17, 2013 12:28
-
-
Save t3chnoboy/7512770 to your computer and use it in GitHub Desktop.
sails generate adapter myAdapter --coffee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = -> | |
| # MyAdapterAdapter | |
| # | |
| # @module :: Adapter | |
| # @description :: A short summary of what this adapter is for and what interfaces it supports. | |
| # @docs :: http://sailsjs.org/#!documentation/adapters | |
| # | |
| # @syncable :: false | |
| # @schema :: false | |
| Adapter = | |
| # registerCollection() is run multiple times (once for each model, aka collection) | |
| # before the server ever starts. It allows us to register our models with the | |
| # underlying adapter interface. (don't forget to cb() when you're done!) | |
| registerCollection: (collection, cb) -> | |
| cb() |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'sails generate adapter myAdapter --coffee' output