1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/generators.rb

28 lines
647 B
Ruby
Raw Normal View History

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'
require 'generators/erb'
2009-06-23 13:45:50 -04:00
require 'generators/test_unit'
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]
end
end
end
end
2009-06-23 13:10:42 -04:00