Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Version 0.7.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
benpickles committed Mar 5, 2010
1 parent 1db8b83 commit 1160851
Show file tree
Hide file tree
Showing 4 changed files with 427 additions and 1 deletion.
10 changes: 10 additions & 0 deletions CHANGELOG.markdown
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Changelog

## 0.7.1

* `Model.RestPersistence` now recognises a 422 response as validation failure and populates the model's errors object with the response data.
* `Model.errors` is now an object and has a similar interface to ActiveModel.
* Fix that `changes` should only be merged after a successful `save` (create/update).
* Calling Model#attr() with no arguments returns a combined object of attributes/changes.
* Fix that `Model.RestPersistence` Ajax failures should correctly run the supplied callback.
* Add `count` method to `Model.Collection`.
* Collection methods now access the collection through the `all` method so that `select`, `each`, etc work as expected if it's overwritten.

## 0.7.0

* Events are now bound directly to a model rather than using jQuery `bind`. Collections also now have the concept of events with "add" and "remove" built-in.
Expand Down
Loading

0 comments on commit 1160851

Please sign in to comment.