public
Description: DeepCloning plugin
Homepage: http://blog.defv.be/2008/3/27/activerecord-deepclone-plugin
Clone URL: git://github.com/DefV/deep_cloning.git
Stupid mistake
DefV (author)
Fri Mar 28 09:46:43 -0700 2008
commit  4540750444de4484f87930dc79d0042bd8978ed0
tree    f5a6bd8a45214d18f281f6ba4bf72d7e93249082
parent  23c8e407ed9348717f482331b3c26cfb2939d56a
...
38
39
40
41
 
42
43
44
...
38
39
40
 
41
42
43
44
0
@@ -38,7 +38,7 @@ module DeepCloning
0
     if options[:include]
0
       [*options[:include]].each do |association, deep_associations|
0
         opts = deep_associations.blank? ? {} : {:include => deep_associations}
0
- self.send("#{association}=", kopy.send(association).collect {|i| i.clone(opts) })
0
+ kopy.send("#{association}=", self.send(association).collect {|i| i.clone(opts) })
0
       end
0
     end
0
 

Comments

    No one has commented yet.