aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/generators.rb
blob: 3ed1bd4b17864a4136d6c6dac20a2db816418821 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12











                                                                        

                               
                        
                              



                    

                                                                       



         
 
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
require 'active_support/all'

# TODO Use vendored Thor
require 'rubygems'
gem 'josevalim-thor'
require 'thor'

$:.unshift(File.dirname(__FILE__))
require 'rails/version' unless defined?(Rails::VERSION)

require 'generators/base'
require 'generators/named_base'
require 'generators/erb'
require 'generators/test_unit'

module Rails
  module Generators
    def self.builtin
      Dir[File.dirname(__FILE__) + '/generators/*/*'].collect do |file|
        file.split('/')[-2, 2]
      end
    end
  end
end