RubyGems.org

amoeba

2.0.0

An extension to ActiveRecord to allow the duplication method to also copy associated children, with recursive support for nested of grandchildren. The behavior is controllable with a simple DSL both on your rails models and on the fly, i.e. per instance. Numerous configuration styles and preprocessing directives are included for power and flexibility. Supports preprocessing of field values to prepend strings such as "Copy of ", to nullify or process field values with regular expressions. Supports most association types including has_one :through and has_many :through. Tags: copy child associations, copy nested children, copy associated child records, nested copy, copy associations, copy relations, copy relationships, duplicate associations, duplicate associated records, duplicate child records, duplicate children, copy all, duplicate all, clone child associations, clone nested children, clone associated child records, nested clone, clone associations, clone relations, clone relationships, cloning child associations, cloning nested children, cloning associated child records, deep_cloning, nested cloning, cloning associations, cloning relations, cloning relationships, cloning child associations, cloning nested children, cloning associated child records, nested cloning, cloning associations, cloning relations, cloning relationships, cloning child associations, cloning nested children, cloning associated child records, deep_cloning, nested cloning, cloning associations, cloning relations, cloning relationships, duplicate child associations, duplicate nested children, duplicate associated child records, nested duplicate, duplicate associations, duplicate relations, duplicate relationships, duplicate child associations, duplicate nested children, duplicate associated child records, deep_duplicate, nested duplicate, duplicate associations, duplicate relations, duplicate relationships, deep_copy, deep_clone, deep_cloning, deep clone, deep cloning, has_one, has_many, has_and_belongs_to_many

installgem install amoeba
Authors

Vaughn Draughon

75,764 total downloads 52,742 for this version
Owners

C2825d355e63abf12e08513b6a0a0948

Licenses

BSD

Gemfile
gem 'amoeba', '~> 2.0.0'
Versions
  1. 2.0.0 January 3, 2013 (21 KB)
  2. 1.2.1 April 8, 2012 (20.5 KB)
  3. 1.2.0 March 25, 2012 (19.5 KB)
  4. 1.1.0 March 22, 2012 (16.5 KB)
  5. 1.0.0 March 21, 2012 (15.5 KB)
Show all versions (10 total)
Runtime Dependencies
  1. activerecord >= 3.0