This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit a1efe599d8334948339e38c5a260a3c637a2c04a
tree cfa47835e302af02b87adc37c9d4ce407159f5e2
parent 753adea9dd0af265270e740bc1dbb090bcd52660
tree cfa47835e302af02b87adc37c9d4ce407159f5e2
parent 753adea9dd0af265270e740bc1dbb090bcd52660
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | Fri Mar 28 06:17:34 -0700 2008 | [DefV] |
| |
README.rdoc | Tue Apr 08 03:18:48 -0700 2008 | [DefV] |
| |
Rakefile | Tue Apr 08 03:18:48 -0700 2008 | [DefV] |
| |
about.yml | Sat Mar 29 13:12:04 -0700 2008 | [DefV] |
| |
init.rb | Thu Mar 27 11:53:30 -0700 2008 | [DefV] |
| |
lib/ | Mon Mar 31 00:27:42 -0700 2008 | [DefV] |
| |
test/ | Mon Mar 31 02:07:13 -0700 2008 | [DefV] |
README.rdoc
Deep Cloning Plugin
This plugin gives every ActiveRecord::Base object the possibility to do a deep clone.
Repository is on github: http://github.com/DefV/deep_cloning/tree/master
Install with:
script/plugin install git://github.com/DefV/deep_cloning.git
Example
Cloning a model without an attribute
pirate.clone :except => :name
Cloning a model without multiple attributes
pirate.clone :except => [:name, :nick_name]
Cloning one single association
pirate.clone :include => :mateys
Cloning multiple associations
pirate.clone :include => [:mateys, :treasures]
Cloning really deep
pirate.clone :include => {:treasures => :gold_pieces}
Copyright © 2008 Jan De Poorter, released under the MIT license




