DeepDive is a ruby gem that allows you to deep copy your object graphs in a controlled way. You can specify which instance variables to skip over in the duplication, which will just leave the original reference to them in the copy.