Skip to content

Latest commit

 

History

History
44 lines (31 loc) · 821 Bytes

README.md

File metadata and controls

44 lines (31 loc) · 821 Bytes

ember-data-sails-adapter

An Ember data adapter for Sails.js v0.9 sockets

bower install ember-data-sails-adapter
<script type="text/javascript" src="/bower_components/ember-data-sails-adapter/sails-adapter.js"></script>
App.ApplicationAdapter = DS.SailsAdapter.extend({
    prefix: '/api/v1',
    log: false,
    modelNameMap: {
      userprofile: 'UserProfile'
    }
});

Options

prefix

Type: String Default value: ''

The prefix to add to the request uris.

log

Type: Boolean Default value: false

Set to true if you would like to see a log of all requests in the command line.

modelNameMap

Type: Object Default value: {}

Used to map lowercase model names that sails uses to model names that ember can understand.