提交 baa9ffb8 编写于 作者: N Naoto Kaneko

Add `rake initializer`

This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
上级 5c83f517
* Add `rake initializer`
This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
*Naoto Kaneko*
* Created rake restart task. Restarts your Rails app by touching the
`tmp/restart.txt`.
......
......@@ -4,6 +4,7 @@
%w(
annotations
framework
initializer
log
middleware
misc
......
desc "Prints out initializers for your application"
task initializer: :environment do
Rails.application.initializers.tsort_each do |initializer|
puts initializer.name
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册