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 options and styles and preprocessing directives are included for power and flexibility. Tags: copy child associations, copy nested children, copy associated child records, deep_copy, nested copy, copy associations, copy relations, copy relationships, has_one, has_many, has_and_belongs_to_many, duplicate associations, duplicate associated records, duplicate child records, duplicate children, copy all, duplicate all.

Required Ruby Version

None

Authors

Vaughn Draughon

Versions

  1. 3.3.0 September 30, 2023 (29.5 KB)
  2. 3.2.0 June 30, 2021 (28 KB)
  3. 3.1.0 April 22, 2017 (27.5 KB)
  4. 3.0.0 January 07, 2015 (25.5 KB)
  5. 2.1.0 September 08, 2014 (22 KB)
  6. 0.0.2 February 28, 2012 (14 KB)
Show all versions (15 total)

SHA 256 checksum