Merge pull request #822 from wfgomes/patch-2

Fixing the model attach
This commit is contained in:
Raymond Feng 2014-11-18 11:08:02 -08:00
commit 768dc4a7b0
1 changed files with 1 additions and 3 deletions

View File

@ -9,9 +9,7 @@ var schema = {
var Color = app.model('color', schema);
app.dataSource('db', {adapter: 'memory'});
Color.dataSource('db');
app.dataSource('db', {adapter: 'memory'}).attach(Color);
Color.create({name: 'red'});
Color.create({name: 'green'});