Permalink
Browse files

Version 0.7.1.

  • Loading branch information...
1 parent 1db8b83 commit 116085103fda248e85bdcf90b5c48fa4dd1325a5 @benpickles committed Mar 5, 2010
Showing with 427 additions and 1 deletion.
  1. +10 −0 CHANGELOG.markdown
  2. +400 −0 dist/js-model-0.7.1.js
  3. +16 −0 dist/js-model-0.7.1.min.js
  4. +1 −1 src/constants.yml
View
@@ -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.
Oops, something went wrong.

0 comments on commit 1160851

Please sign in to comment.