cleanup
authorSteve Hackbarth <stephenhackbarth@gmail.com>
Mon, 23 Jun 2014 19:11:19 +0000 (15:11 -0400)
committerSteve Hackbarth <stephenhackbarth@gmail.com>
Mon, 23 Jun 2014 19:11:19 +0000 (15:11 -0400)
lib/backbone-x/source/model_mixin.js
test/specs/credit_card.js

index 0b4d8a9..23a91fc 100644 (file)
       this.privileges.attribute[attribute];
 
     // shim: the way to set an attribute to be non-editable after persist is {update: "false"}
-    // if someone is asking if we can update a ready_new model, they're going to be asking
+    // if someone is asking if we can update a READY_NEW model, they're going to be asking
     // canEdit, which will map to update, but we really know they are interested in the `create`
     // attribute of the privObject
-    if (privObject && action === "update" && this.isNew() && privObject.create !== privObject.update) {
+    if (privObject && action === "update" && this.isNew() &&
+        privObject.create !== privObject.update) {
       action = "create";
     }
 
index 8d9bf3c..e059d72 100644 (file)
         next();
       }
     }],
-    skipSmoke: true, // credit card is not a first-class business model
+    skipSmoke: true, // credit card is not a first-class business object with its own list
     skipDelete: true
   };
   exports.spec = spec;