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
// connect to mongo | |
require('./db').init(config.mongodb, function(err) { | |
if (err) { | |
throw err; | |
} else { | |
console.log('[app] connection to mongodb has been established'); | |
// Here you can start app, this will be after db connection init... | |
} | |
}); |
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
var RawTransform = DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return serialized; | |
}, | |
serialize: function(deserialized) { | |
return deserialized; | |
} | |
}); | |
App.register('transform:raw', RawTransform); |