1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #19323 from naoty/rake_initializer

Add `rake initializer`
This commit is contained in:
Rafael Mendonça França 2015-03-13 14:55:53 -03:00
commit 814d4da48e
3 changed files with 14 additions and 0 deletions

View file

@ -1,3 +1,10 @@
* 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`.

View file

@ -4,6 +4,7 @@ require 'rake'
%w(
annotations
framework
initializer
log
middleware
misc

View file

@ -0,0 +1,6 @@
desc "Prints out initializers for your application"
task initializer: :environment do
Rails.application.initializers.tsort_each do |initializer|
puts initializer.name
end
end