Skip to content

Instantly share code, notes, and snippets.

@andressrg
andressrg / array.js
Last active August 29, 2015 14:25 — forked from NuckChorris/array.js
In Ember-CLI, transforms are located in app/transforms/name.js
// app/transforms/array.js
import Ember from 'ember';
import DS from 'ember-data';
export default DS.Transform.extend({
deserialize: function(value) {
if (Ember.isArray(value)) {
return Ember.A(value);
} else {
return Ember.A();
var _ = require('underscore');
var RSVP = require('rsvp');
global.index = {};
function connectFirebaseIndex(name, location) {
return new RSVP.Promise(function(res, rej) {
if(global.index[name]) {
return res();
}
application: you-app-name-here
version: 1
runtime: python
api_version: 1
default_expiration: "30d"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest