moiristo / deep_cloneable

This gem gives every ActiveRecord::Base object the possibility to do a deep clone that includes user specified associations.
MIT License
786 stars 88 forks source link

Question: how to do a really really really deep dup? #36

Closed gaboesquivel closed 10 years ago

gaboesquivel commented 10 years ago

Hi, I'm trying to figure out how do a really really really really deep dup with deep_clonable ... this is the example provided pirate.dup :include => {:treasures => :gold_pieces} Is it possible include children of :gold_pieces ? thanks

moiristo commented 10 years ago

this should work: pirate.dup include: { treasures: { goldpieces: :sides } }?