提交 115abd52 编写于 作者: P Piotr Sarnacki 提交者: José Valim

Ensure that app generator is not loaded twice to get rid of warnings

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 f821055d
......@@ -302,6 +302,7 @@ def self.lookup! #:nodoc:
$LOAD_PATH.each do |base|
Dir[File.join(base, "{rails/generators,generators}", "**", "*_generator.rb")].each do |path|
begin
path = path.sub("#{base}/", "")
require path
rescue Exception => e
# No problem
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册