@@ -84,12 +84,12 @@ task.title = 'a very different title now'
...
@@ -84,12 +84,12 @@ task.title = 'a very different title now'
task.save().then(function(){})
task.save().then(function(){})
// way 2
// way 2
task.updateAttributes({
task.update({
title:'a very different title now'
title:'a very different title now'
}).then(function(){})
}).then(function(){})
```
```
It's also possible to define which attributes should be saved when calling `save`, by passing an array of column names. This is useful when you set attributes based on a previously defined object. E.g. if you get the values of an object via a form of a web app. Furthermore this is used internally for `updateAttributes`. This is how it looks like:
It's also possible to define which attributes should be saved when calling `save`, by passing an array of column names. This is useful when you set attributes based on a previously defined object. E.g. if you get the values of an object via a form of a web app. Furthermore this is used internally for `update`. This is how it looks like: