提交 5f005924 编写于 作者: S Stefan Sprenger

Refactor identifying generator's destination root

上级 a0ee2270
...@@ -8,8 +8,5 @@ ...@@ -8,8 +8,5 @@
name = ARGV.shift name = ARGV.shift
if defined?(ENGINE_ROOT) root = defined?(ENGINE_ROOT) ? ENGINE_ROOT : Rails.root
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => ENGINE_ROOT Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => root
else
Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册