Skip to content

Commit

Permalink
Fixes previous wrongly changing if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dresende committed Mar 4, 2013
1 parent 9297815 commit d838876
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Associations/One.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function extendInstance(Model, Instance, Driver, association, opts, cb) {
},
enumerable: false
});
if (association.reversed) {
if (!association.reversed) {
Object.defineProperty(Instance, association.delAccessor, {
value: function (cb) {
Instance[association.field] = 0;
Expand Down

0 comments on commit d838876

Please sign in to comment.