From 9a1d10c1d8297c9d7e1d9b3fd6f280999d969b18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Andre=CC=81s=20Di=CC=81az=20Vergara?= Date: Tue, 27 Jun 2017 12:40:22 -0400 Subject: [PATCH] Passes the merged attributes to `_create` --- src/Model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Model.js b/src/Model.js index 36b57d6..e0d541b 100644 --- a/src/Model.js +++ b/src/Model.js @@ -203,7 +203,7 @@ export default class Model { if (this.collection) { return this.collection.create(this, { optimistic }) } else { - return this._create(attributes, { optimistic }) + return this._create(this.attributes.toJS(), { optimistic }) } }