From 9e80c29cd5f82359730e7e7474c24b8ab844549d Mon Sep 17 00:00:00 2001 From: Godfrey Chan Date: Fri, 20 Mar 2015 15:51:01 -0700 Subject: `rake initializer` -> `rake initializers` Also edited the copy to be more consistent with `rake routes`. See #19323. --- railties/lib/rails/tasks.rb | 2 +- railties/lib/rails/tasks/initializer.rake | 6 ------ railties/lib/rails/tasks/initializers.rake | 6 ++++++ 3 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 railties/lib/rails/tasks/initializer.rake create mode 100644 railties/lib/rails/tasks/initializers.rake (limited to 'railties/lib') diff --git a/railties/lib/rails/tasks.rb b/railties/lib/rails/tasks.rb index 5dfc96894c..2c3d278eca 100644 --- a/railties/lib/rails/tasks.rb +++ b/railties/lib/rails/tasks.rb @@ -4,7 +4,7 @@ require 'rake' %w( annotations framework - initializer + initializers log middleware misc diff --git a/railties/lib/rails/tasks/initializer.rake b/railties/lib/rails/tasks/initializer.rake deleted file mode 100644 index 83b9dc6b71..0000000000 --- a/railties/lib/rails/tasks/initializer.rake +++ /dev/null @@ -1,6 +0,0 @@ -desc "Prints out initializers for your application" -task initializer: :environment do - Rails.application.initializers.tsort_each do |initializer| - puts initializer.name - end -end diff --git a/railties/lib/rails/tasks/initializers.rake b/railties/lib/rails/tasks/initializers.rake new file mode 100644 index 0000000000..c9d1b671b1 --- /dev/null +++ b/railties/lib/rails/tasks/initializers.rake @@ -0,0 +1,6 @@ +desc "Print out all defined initializers in the order they are invoked by Rails." +task initializer: :environment do + Rails.application.initializers.tsort_each do |initializer| + puts initializer.name + end +end -- cgit v1.2.3