diff options
author | Naoto Kaneko <naoty.k@gmail.com> | 2015-03-14 01:41:21 +0900 |
---|---|---|
committer | Naoto Kaneko <naoty.k@gmail.com> | 2015-03-14 01:41:21 +0900 |
commit | baa9ffb82238a3d586a9213db0dbdc971de06037 (patch) | |
tree | fff0a321968095dfb58c443e5676139d31f62ecd /railties/lib/rails/tasks | |
parent | 5c83f51740201f1976c8bdcdecce46947bab6e0f (diff) | |
download | rails-baa9ffb82238a3d586a9213db0dbdc971de06037.tar.gz rails-baa9ffb82238a3d586a9213db0dbdc971de06037.tar.bz2 rails-baa9ffb82238a3d586a9213db0dbdc971de06037.zip |
Add `rake initializer`
This task prints out initializers for an application. It is useful to
develop a rubygem which involves the initialization process.
Diffstat (limited to 'railties/lib/rails/tasks')
-rw-r--r-- | railties/lib/rails/tasks/initializer.rake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/rails/tasks/initializer.rake b/railties/lib/rails/tasks/initializer.rake new file mode 100644 index 0000000000..83b9dc6b71 --- /dev/null +++ b/railties/lib/rails/tasks/initializer.rake @@ -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 |