aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Make sure that without_locking reverts AR::Base.lock_optimistically to its ↵rails_2Hongli Lai (Phusion)2009-03-23-3/+30
| | | | old value even if the given block raises an exception.
* Remove the test_version_has_unique_created_at unit test, which is no longer ↵Hongli Lai (Phusion)2009-03-23-7/+0
| | | | needed because of commit d7c0da03.
* Remove created_at and created_on from the default non_versioned_columnsNgoc Dao2009-02-15-1/+1
| | | Signed-off-by: rick <technoweenie@gmail.com>
* Change the create_versioned_table class method to ask the connection if ↵Ken Collins2009-02-09-1/+1
| | | | | table_exists?. Fixes a bug that allows adapters that allow user owned prefixes for table names. Signed-off-by: rick <technoweenie@gmail.com>
* configure gemBrian Johnson2009-01-21-0/+33
| | | Signed-off-by: rick <technoweenie@gmail.com>
* Do not force updated_atNgoc Dao2009-01-10-6/+0
| | | Signed-off-by: rick <technoweenie@gmail.com>
* Avoid error with model preloadNgoc Dao2009-01-10-2/+0
| | | Signed-off-by: rick <technoweenie@gmail.com>
* fix method name: not 'create_index' but 'add_index'maiha2009-01-05-2/+2
| | | Signed-off-by: rick <technoweenie@gmail.com>
* add extra LockedPage field so that it would save even if LockedPage#title ↵rick2008-10-03-1/+3
| | | | had not updated
* fix bug so that create_versioned_table doesn't attempt to create duplicate ↵rick2008-10-03-1/+1
| | | | tables
* Merge branch 'master' of git://github.com/francis/acts_as_versionedrick2008-10-03-29/+31
|\
| * create version table on the fly if missing, use proper version column name ↵Francis Sullivan2008-09-30-1/+8
| | | | | | | | when checking for existence, and add index automatically
| * cleanup deprecated comments, and map if_changed fields up front one timeFrancis Sullivan2008-09-25-8/+3
| |
| * allow non_versioned_columns to be passed in as an optionFrancis Sullivan2008-09-24-1/+1
| |
| * clean up use of class attributeFrancis Sullivan2008-09-23-5/+5
| |
| * tweaks to make the version_column name work on both the parent and version tableFrancis Sullivan2008-09-23-18/+18
| |
* | Gem::manage_gems is deprecated, (rubygems 1.3, ↵GuillaumeGentil2008-09-30-2/+0
|/ | | | http://blog.segment7.net/articles/2008/09/26/rubygems-1-3-0)
* do not version #created_at or #created_onrick2008-09-03-2/+12
|
* #save_version? is always false in after_saverick2008-06-25-3/+3
|
* favor after_save callbacks, its easier to force tasks to run before or after ↵rick2008-06-25-27/+32
| | | | after_save callbacks
* fixed the problem where if_changed only triggered if all listed columns were ↵Pelle Braendgaard2008-06-23-1/+25
| | | | changed
* * (16 Jun 2008) Backwards Compatibility is overrated (big updates for rails 2.1)rick2008-06-16-82/+29
| | | | | | | * Remove last traces of #non_versioned_fields * Remove AR::Base.find_version and AR::Base.find_versions, rely on AR association proxies and named_scope * Remove #versions_count, rely on AR association counter caching. * Remove #versioned_attributes, basically the same as AR::Base.versioned_columns
* re-remove default order by clause, see 177276643fce38c752004fd81614b8af5ac1587frick2008-06-08-10/+10
|
* Modified acts_as_versioned to work with ActiveRecord's dirty attribute checking.Asa Calow2008-05-29-10/+9
|
* Modified acts_as_versioned to work with ActiveRecord's dirty attribute checking.Asa Calow2008-05-29-9/+12
|
* Modified acts_as_versioned to work with ActiveRecord's dirty attribute checking.Asa Calow2008-05-29-12/+9
|
* My changes to dateAsa Calow2008-05-29-34/+9
|
* Merge branch 'master' of git://github.com/asacalow/acts_as_versionedrick2008-05-23-21/+26
|\
| * Renamed :changed_attributes to :altered attributes to prevent clashes with ↵unknown2008-05-23-10/+10
| | | | | | | | new dirty attribute checking in ActiveRecord.
| * Updated the tests to run on rails 2.1unknown2008-05-23-11/+16
| |
* | Prevents conflicting order by clauses, e.g. "ORDER BY version desc, version"Jim Van Fleet2008-04-30-2/+1
|/
* Merge branch 'master' of git@activereload.net:acts_as_versionedrick2008-03-10-0/+0
|\
| * Merge branch 'master' of git@activereload.net:acts_as_versionedrick2008-01-22-0/+0
| |\
| | * mergerick2008-01-11-0/+0
| | |\
| | | * add test so that #create_versioned_table creates decimal columns properly. ↵rick2008-01-10-6/+23
| | | | | | | | | | | | | | | | Add code to selectively load active_record from gems in tests
| | * | fix type_col typo [MoisesMachado]rick2008-01-11-4/+7
| | | |
* | | | Added test coverage for RecordNotFound raising.Joshua Peek2008-03-06-0/+3
| | | |
* | | | Added test coverage for versions_count and find_version.Joshua Peek2008-03-06-0/+16
| | | |
* | | | Kill more whitespace!Joshua Peek2008-03-06-44/+44
| | | |
* | | | Raise RecordNotFound on find_version.Joshua Peek2008-03-04-3/+8
| | | |
* | | | find_version returns latest record if version is nil. Added versions_count ↵Joshua Peek2008-03-04-1/+16
| | | | | | | | | | | | | | | | delegate Versioned model.
* | | | Kill Whitespace!Joshua Peek2008-03-04-35/+35
|/ / /
* | | fix typo [Malesca]technoweenie2008-01-22-1/+1
| | | | | | | | | | | | git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@3092 567b1171-46fb-0310-a4c9-b4bef9110e78
* | | fix type_col typo [MoisesMachado]technoweenie2008-01-11-4/+7
|/ / | | | | | | git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@3089 567b1171-46fb-0310-a4c9-b4bef9110e78
* / add test so that #create_versioned_table creates decimal columns properly. ↵technoweenie2008-01-11-6/+23
|/ | | | | | Add code to selectively load active_record from gems in tests git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@3088 567b1171-46fb-0310-a4c9-b4bef9110e78
* make some fixes for edge rails, and use the model accessor method to clone ↵technoweenie2007-10-12-5/+5
| | | | | | methods instead of accessing #attributes directly git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@2992 567b1171-46fb-0310-a4c9-b4bef9110e78
* remove debug msgtechnoweenie2007-08-13-1/+0
| | | | git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@2948 567b1171-46fb-0310-a4c9-b4bef9110e78
* add methods for paging between versions, like ↵technoweenie2007-08-13-22/+74
| | | | | | @page.versions.before(@page_version) or @page_version.previous git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@2947 567b1171-46fb-0310-a4c9-b4bef9110e78
* rework abstract_unit so tests passtechnoweenie2007-08-13-25/+19
| | | | git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@2946 567b1171-46fb-0310-a4c9-b4bef9110e78
* tweak the way #without_revision works so that it doesnt clobber overridden ↵technoweenie2007-04-08-8/+4
| | | | | | callback methods git-svn-id: http://svn.techno-weenie.net/projects/plugins/acts_as_versioned@2837 567b1171-46fb-0310-a4c9-b4bef9110e78