public
Description: Adds a merge! method to ActiveRecord, for joining records together and updating associations.
Homepage:
Clone URL: git://github.com/cainlevy/active_record_merge.git
100644 9 lines (5 sloc) 0.414 kb
1
2
3
4
5
6
7
8
9
ActiveRecordMerge
=================
 
Adds a merge! method to ActiveRecord instances. This method automatically merges attributes and associations from one record to another, destroying the other record when it's done.
 
Note: I don't know if I ever actually used this, but it's a good example of database testing in plugins so I like to keep it around.
 
Copyright (c) 2007 Lance Ivy, released under the MIT license