Skip to content

Instantly share code, notes, and snippets.

@m19
m19 / gist:929475e8d26411abc091
Created May 13, 2014 18:12
Ember Sails Serializer
App.ApplicationSerializer = DS.RESTSerializer.extend({
/**
The current ID index of generated IDs
@property
@private
*/
_generatedIds: 0,
/**
Sideload a JSON object to the payload
@m19
m19 / gist:31606a34f1ac89ed612d
Created May 13, 2014 18:11
Ember Data Sails Adapter
(function() {
/*global Ember*/
/*global DS*/
/*global io*/
/*global _*/
'use strict';
var RSVP = Ember.RSVP;
var get = Ember.get;