Skip to content

Commit

Permalink
Updating documentation to reflect dirty tracking refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Aug 20, 2016
1 parent 93432e1 commit c37ae41
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ See the [update history](https://github.com/couchrest/couchrest_model/blob/maste

### Upgrading from an earlier version?

*Pre 2.2:* As of August 2016, dirty tracking has been radically re-factored away from ActiveModel::Dirty, which only has support for basic attributes, into a solution that uses [Hashdiff](https://github.com/liufengyun/hashdiff), more details available in the [pull request](https://github.com/couchrest/couchrest_model/pull/211). The result is that some of ActiveModel's Dirty methods are no longer available, these are: `changes_applied`, `restore_attributes`, `previous_changes`, and `changed_attributes`.

*Pre 2.0:* As of June 2012, couchrest model no longer supports the `view_by` and `view` calls from the model. Views are no only accessed via a design document. If you have older code and wish to upgrade, please ensure you move to the new syntax for using views.

*Pre 1.1:* As of April 2011 and the release of version 1.1.0, the default model type key is 'type' instead of 'couchrest-type'. Simply updating your project will not work unless you migrate your data or set the configuration option in your initializers:
Expand Down
6 changes: 3 additions & 3 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# CouchRest Model Change History

## 2.2.0 - pending
## 2.2.0.beta1 - pending

* Radical refactor of dirty tracking using Hashdiff gem, providing reliable change detection with nested data. (@samlown)
* Radical re-factor of dirty tracking using Hashdiff gem, providing reliable change detection with nested data. [PR](https://github.com/couchrest/couchrest_model/pull/211) (@samlown)

## 2.1.0 - 2016-07-06
## 2.1.0.rc1 - 2016-07-06

* Adding "persistent" connection configuration property (@samlown)
* Releasing 2.1.0 off of CouchRest 2.0.0.
Expand Down

0 comments on commit c37ae41

Please sign in to comment.