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 dec89e62995d1a84434f79d4eca1e5f6a0ffd63b
tree 7f2df10bceef3734e80a336e303511af13229593
parent 4558e86dc2f68b5067095fc468afce5bc8e36d45
tree 7f2df10bceef3734e80a336e303511af13229593
parent 4558e86dc2f68b5067095fc468afce5bc8e36d45
| name | age | message | |
|---|---|---|---|
| |
MIT-LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
about.yml | ||
| |
init.rb | Thu Mar 27 11:53:30 -0700 2008 | |
| |
lib/ | ||
| |
test/ |
README.rdoc
Deep Cloning Plugin
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
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}
Cloning really deep with multiple associations
pirate.clone :include => [:mateys, {:treasures => :gold_pieces}]
Copyright © 2008 Jan De Poorter, released under the MIT license








