Skip to content

Instantly share code, notes, and snippets.

@t3chnoboy
Created November 17, 2013 12:28
Show Gist options
  • Select an option

  • Save t3chnoboy/7512770 to your computer and use it in GitHub Desktop.

Select an option

Save t3chnoboy/7512770 to your computer and use it in GitHub Desktop.
sails generate adapter myAdapter --coffee
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()
@t3chnoboy
Copy link
Author

'sails generate adapter myAdapter --coffee' output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment