aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/commands/dev/dev_command.rb5
-rw-r--r--railties/lib/rails/commands/initializers/initializers_command.rb2
-rw-r--r--railties/lib/rails/tasks/initializers.rake1
3 files changed, 5 insertions, 3 deletions
diff --git a/railties/lib/rails/commands/dev/dev_command.rb b/railties/lib/rails/commands/dev/dev_command.rb
index 820dc4db9e..a3f02f3172 100644
--- a/railties/lib/rails/commands/dev/dev_command.rb
+++ b/railties/lib/rails/commands/dev/dev_command.rb
@@ -5,7 +5,10 @@ require "rails/dev_caching"
module Rails
module Command
class DevCommand < Base # :nodoc:
- desc "Toggle development mode caching on/off"
+ def help
+ say "rails dev:cache # Toggle development mode caching on/off."
+ end
+
def cache
Rails::DevCaching.enable_by_file
end
diff --git a/railties/lib/rails/commands/initializers/initializers_command.rb b/railties/lib/rails/commands/initializers/initializers_command.rb
index 559546acea..33596177af 100644
--- a/railties/lib/rails/commands/initializers/initializers_command.rb
+++ b/railties/lib/rails/commands/initializers/initializers_command.rb
@@ -3,7 +3,7 @@
module Rails
module Command
class InitializersCommand < Base # :nodoc:
- desc "Print out all defined initializers in the order they are invoked by Rails."
+ desc "initializers", "Print out all defined initializers in the order they are invoked by Rails."
def perform
require_application_and_environment!
diff --git a/railties/lib/rails/tasks/initializers.rake b/railties/lib/rails/tasks/initializers.rake
index 7ccf7455bb..1fa8ca4f51 100644
--- a/railties/lib/rails/tasks/initializers.rake
+++ b/railties/lib/rails/tasks/initializers.rake
@@ -3,7 +3,6 @@
require "rails/command"
require "active_support/deprecation"
-desc "Print out all defined initializers in the order they are invoked by Rails."
task :initializers do
ActiveSupport::Deprecation.warn("Using `bin/rake initializers` is deprecated and will be removed in Rails 6.1. Use `bin/rails initializers` instead.\n")
Rails::Command.invoke "initializers"