* Before: dup method was applied to a list of ActiveRecord objects, which was making a shallow copy of the array without creating new records for the objects within the array. So e.g: assigning a list of checks [belonging to rule B] to rule A disassociate the checks from rule B, updating the foreign key to rule A id.
* Fix: updated the logic to get the list of duplicated [new records] activeRecord model objects `map(&:dup)`.
Signed-off-by: Vanessa Fotso vfotso@mitre.org