Skip to content

Commit f9bbbac

Browse files
committed
Merge pull request rayokota#7 from MagicIndustries/master
removed incorrect .options from calling of associations
2 parents 6d5f07a + 3af9c04 commit f9bbbac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/templates/models/_index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ fs
1919
})
2020

2121
Object.keys(db).forEach(function(modelName) {
22-
if (db[modelName].options.hasOwnProperty('associate')) {
23-
db[modelName].options.associate(db)
22+
if (db[modelName].hasOwnProperty('associate')) {
23+
db[modelName].associate(db)
2424
}
2525
})
2626

0 commit comments

Comments
 (0)