2009-06-23 10:19:23 -04:00
|
|
|
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)
|
|
|
|
|
2009-06-23 13:10:42 -04:00
|
|
|
require 'generators/base'
|
|
|
|
require 'generators/named_base'
|
2009-06-25 06:57:58 -04:00
|
|
|
require 'generators/erb'
|
2009-06-23 13:45:50 -04:00
|
|
|
require 'generators/test_unit'
|
2009-06-23 10:19:23 -04:00
|
|
|
|
|
|
|
module Rails
|
|
|
|
module Generators
|
|
|
|
def self.builtin
|
2009-06-23 13:10:42 -04:00
|
|
|
Dir[File.dirname(__FILE__) + '/generators/*/*'].collect do |file|
|
|
|
|
file.split('/')[-2, 2]
|
2009-06-23 10:19:23 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2009-06-23 13:10:42 -04:00
|
|
|
|