Simple duplication of ActiveAdmin resources.
Allow user duplication of ActiveAdmin resources through the power of the Amoeba gem. Resource duplication can be performed by either persisting the model and its relations, or by pre-filling a new resource's form fields with defaults.
Add duplication functionality to a Post resource. See Duplicatable for documentation.
ActiveAdmin.register Post do
duplicatable
end
Add this line to your application's Gemfile:
gem 'active_admin-duplicatable'
And then execute:
$ bundle
- Fork it ( https://github.com/zorab47/active_admin-duplicatable/fork )
- 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
) - Create a new Pull Request
Follows Semantic Versioning 2.0.0