Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update lib/associations/many.js

Association collection name passed into options
  • Loading branch information...
commit 36206824563a333b78d0f6dd50e3c473f7570344 1 parent 67aa969
@Gamaroff Gamaroff authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/associations/many.js
View
1  lib/associations/many.js
@@ -42,7 +42,6 @@ module.exports = {
},
create: function (instance, association, field, associationModel, associationOpts) {
var camelCaseAssociation = association.substr(0, 1).toUpperCase() + association.substr(1);
- var collection = model + "_" + association;
var collection = associationOpts.association ? associationOpts.association : model + "_" + association;
instance.prototype["add" + camelCaseAssociation] = function () {
Please sign in to comment.
Something went wrong with that request. Please try again.