Version every change and increment version_column on every change, including changes made by revert_to and restore.
Unconditionally manage version numbers, even if optimistic locking is active for a model.
Todo: Modify tests.
Fixed problem when calculating new version number using versions association: Highest number is now read by simply selecting record from versions model using where method.
Renamed param
Added/modified comments, fixed test_versions_after_save: to get current versions-array after updating an object, object must be reloaded
Versioning column and locking column may not be identicall from now on:
Removed version_column in acts_as_versioned config hash of LockedPage model
Fixed testdata and schema for optimistic locking tests
Method calls of "lock_version" substituted by "version"
Modified revert_to tests:
When reverting to an former revision, now a new version number is set instead of using the version number of the loaded revision.
Additionally a new revision record is created, so we test if the count of the revisions is increased.
Added test for new behavior (create revision on every change)
Merge branch 't7878_version_every_change' into rails3
acts_as_versioned now also creates a new revision on every restore and revert_to.
Version number of original record is always incremented, even when restoring from or reverting to a previous revision.
acts_as_versioned now does not use lock_version column for version information, but uses it's own version column (default "version")
DO NOT OVERRIDE WITH "lock_version"!
Merge branch 'rails3' of https://github.com/rtiss/rtiss_acts_as_versioned into rails3