Merge any two Active Record objects, along with all associated objects, into one record.
Add to your Gemfile:
Run the bundle command to install it:
Then run the generator:
rails generate effective_mergery:install
The generator will install an initializer which describes all configuration options.
//= require effective_mergery
Require the stylesheet on the asset pipeline by adding the following to your application.css:
*= require effective_mergery
/admin/merge and select an object type to merge.
link_to 'Merge', effective_mergery.admin_merge_index_path link_to 'Merge: User', effective_mergery.new_admin_merge_path(type: 'User')
Add the following permissions (using CanCan):
can :admin, :effective_mergery
MIT License. Copyright Code and Effect Inc.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Bonus points for test coverage
- Create new Pull Request