提交 6c3e80af 编写于 作者: J José Valim

load_generators from engine should also handle self automatically.

上级 078bdc6d
......@@ -174,11 +174,11 @@ def config
def eager_load!
end
def load_console(app)
def load_console(app=self)
self.class.console.each { |block| block.call(app) }
end
def load_tasks(app)
def load_tasks(app=self)
extend Rake::DSL if defined? Rake::DSL
self.class.rake_tasks.each { |block| block.call(app) }
......@@ -190,7 +190,7 @@ def load_tasks(app)
end
end
def load_generators(app)
def load_generators(app=self)
self.class.generators.each { |block| block.call(app) }
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册