merger icon indicating copy to clipboard operation
merger copied to clipboard

A gem for merging Active Record models

Merger

This is a Rails plugin for merging Active Record models together. It is far from complete, but at the moment will move all the associations from the newer records to the oldest record and delete the newer records.

Example

@person.merge!(@dup1, @dup2)