public
Description: FixtureReplacement rails plugin (version 2 and on)
Homepage: http://replacefixtures.rubyforge.org/
Clone URL: git://github.com/smtlaissezfaire/fixturereplacement.git
commit  5c16b52168e61e1642b77b2db646ae070287d110
tree    42b5310aaf934a6de0e15681e3cca42f9f9ea76f
parent  3da75a0e606781f1dda4c88c40d0835d40a869be
100644 29 lines (24 sloc) 0.561 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module FixtureReplacementController
  module ClassFactory
    class << self
      def active_record_factory
        ActiveRecordFactory
      end
 
      def method_generator
        MethodGenerator
      end
    
      def attribute_collection
        AttributeCollection
      end
    
      def fixture_replacement_module
        ::FixtureReplacement
      end
    
      def delayed_evaluation_proc
        FixtureReplacementController::DelayedEvaluationProc
      end
    
      def fake_active_record_instance
        OpenStruct
      end
    end
  end
end