提交 7635c9f4 编写于 作者: J Joshua Peek

script/generate should require environment

上级 7e9e370e
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators'))
Rails.initialize!
if ARGV.size == 0
Rails::Generators.help
......
<%= shebang %>
require File.expand_path('../../config/application', __FILE__)
require File.expand_path('../../config/environment', __FILE__)
require 'rails/commands/generate'
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册