From e8cb132ed6add8e4a9ff935d5c07283a2b2bbd29 Mon Sep 17 00:00:00 2001 From: wfgomes Date: Mon, 17 Nov 2014 00:00:54 -0300 Subject: [PATCH] Fixing the model attach --- example/colors/app.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/example/colors/app.js b/example/colors/app.js index a7fdb01f..e182f926 100644 --- a/example/colors/app.js +++ b/example/colors/app.js @@ -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'});