This plugin gives every ActiveRecord::Base object the possibility to do a deep clone.
Repository is on github: github.com/DefV/deep_cloning/tree/master
Install with:
script/plugin install git://github.com/DefV/deep_cloning.git
pirate.clone :except => :name
pirate.clone :except => [:name, :nick_name]
pirate.clone :include => :mateys
pirate.clone :include => [:mateys, :treasures]
pirate.clone :include => {:treasures => :gold_pieces}
pirate.clone :include => [:mateys, {:treasures => :gold_pieces}]
Copyright © 2008 Jan De Poorter, released under the MIT license