提交 70d26407 编写于 作者: J Jeremy Kemper

Cherry-pick core extensions. Don't explicitly require rubygems. Use load path for vendored thor.

上级 51d202e6
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
$:.unshift(activesupport_path) if File.directory?(activesupport_path)
begin
require 'active_support/mini'
rescue LoadError
require 'rubygems'
gem 'activesupport'
require 'active_support/mini'
end
$:.unshift(File.dirname(__FILE__))
require 'vendor/thor-0.11.6/lib/thor'
$LOAD_PATH.unshift(activesupport_path) if File.directory?(activesupport_path)
require 'active_support'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/object/metaclass'
require 'active_support/core_ext/array'
require 'active_support/core_ext/hash'
require 'active_support/core_ext/module/attribute_accessors'
require 'active_support/core_ext/string/inflections'
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift("#{File.dirname(__FILE__)}/vendor/thor-0.11.6/lib")
require 'generators/base'
require 'generators/named_base'
......
require 'thor'
require 'generators/actions'
module Rails
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册