Skip to content

code-and-effect/effective_mergery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Effective Mergery

Merge any two Active Record Users, along with all associated objects, into one record.

Getting Started

Add to your Gemfile:

gem 'effective_mergery'

Run the bundle command to install it:

bundle install

Then run the generator:

rails generate effective_mergery:install

The generator will install an initializer which describes all configuration options.

Require the javascript on the asset pipeline by adding the following to your application.js:

//= require effective_mergery

Require the stylesheet on the asset pipeline by adding the following to your application.css:

*= require effective_mergery

Usage

Visit /admin/merge/new and select an object type to merge.

link_to 'Merge', effective_mergery.new_admin_merge_path

Permissions

Add the following permissions (using CanCan):

can :admin, :effective_mergery
can :manage, Effective::Merge

License

MIT License. Copyright Code and Effect Inc.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Bonus points for test coverage
  6. Create new Pull Request

About

Deep merge any two ActiveRecord objects

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors