jsmestad/pivotal-tracker — pull request #58 by avdgaag (2012-06-30 08:07:47+00:00)
Title: Let Task#update take a Hash of attributes

This allows you to update a task, for example to mark it as done.
Before, when you would try:

```ruby
@story.tasks.find(123).update :complete => false
```

...you would get an `ArgumentError` since `Task#update` did not take any
arguments. When you tried:

```ruby
task = @story.tasks.find(123)
task.complete = false
task.update
```

You would _still_ get an `ArgumentError` since the internal validations
engine would try to call `Task#update` with a Hash of attributes, like it
does elsewhere.

Now, calling `Task#update` will first use `Task#update_attributes` to set
any new attributes and then make the update request.