rpheath / form_assistant

Rails plugin: a custom, template-based form builder that attempts to make your forms friendly (and maybe even fun!).

This URL has Read+Write access

form_assistant / test / mock_rails.rb
100644 27 lines (22 sloc) 0.466 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
unless Object.const_defined?(:Rails)
  class Rails
    class << self
      attr_accessor :root, :version
 
      def root
        @root ||= File.dirname(__FILE__)
      end
  
      def version
        @version ||= '2.2.2'
      end
      
      def configuration
        @configuration ||= Configuration.new
      end
    end
    
    class Configuration
      attr_accessor :view_path
      
      def view_path
        @view_path ||= ''
      end
    end
  end
end