public
Description: FixtureReplacement rails plugin (version 2 and on)
Homepage: http://replacefixtures.rubyforge.org/
Clone URL: git://github.com/smtlaissezfaire/fixturereplacement.git
* Refactoring to_new_class_instance, and to_created_class_instance
Mon Jul 21 20:53:57 -0700 2008
commit  f60dc8b757b91819c7760ee631e9d3167f829b7a
tree    32f8447bd9e97af98a77afe9d0d5e5316c5b0606
parent  ddf48ba99b57f8849c5a9b4d80a6f382e1f19969
...
68
69
70
71
 
72
73
74
75
 
76
77
78
 
 
 
 
79
80
81
...
107
108
109
110
111
 
...
68
69
70
 
71
72
73
74
 
75
76
77
78
79
80
81
82
83
84
85
...
111
112
113
 
114
115
0
@@ -68,14 +68,18 @@ module FixtureReplacementController
0
     end
0
     
0
     def to_new_class_instance(hash={}, caller=self)
0
- ClassFactory.active_record_factory.new(self, hash, caller).to_new_instance
0
+ construct_new_active_record_factory(hash, caller).to_new_instance
0
     end
0
     
0
     def to_created_class_instance(hash={}, caller=self)
0
- ClassFactory.active_record_factory.new(self, hash, caller).to_created_instance
0
+ construct_new_active_record_factory(hash, caller).to_created_instance
0
     end
0
   
0
   private
0
+
0
+ def construct_new_active_record_factory(hash, caller)
0
+ ClassFactory.active_record_factory.new(self, hash, caller)
0
+ end
0
   
0
     attr_reader :hash_given
0
   
0
@@ -107,4 +111,4 @@ module FixtureReplacementController
0
       symbol.to_s.camelize.constantize
0
     end
0
   end
0
-end
0
\ No newline at end of file
0
+end

Comments

    No one has commented yet.