Skip to content

Commit

Permalink
fix(core): support for relations from json and js configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBGod committed Dec 8, 2016
1 parent c6c732b commit 2bb0e87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include-through.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module.exports = function(Model, options) {
Model.on('attached', function() {
var relations = Model.relations;
var relations = Model.settings.relations || Model.relations;

if (relations) {
Object.keys(relations).forEach(function(targetModel) {
Expand Down

0 comments on commit 2bb0e87

Please sign in to comment.