aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dev/dev_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/dev/dev_command.rb')
-rw-r--r--railties/lib/rails/commands/dev/dev_command.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/dev/dev_command.rb b/railties/lib/rails/commands/dev/dev_command.rb
new file mode 100644
index 0000000000..a3f02f3172
--- /dev/null
+++ b/railties/lib/rails/commands/dev/dev_command.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+require "rails/dev_caching"
+
+module Rails
+ module Command
+ class DevCommand < Base # :nodoc:
+ def help
+ say "rails dev:cache # Toggle development mode caching on/off."
+ end
+
+ def cache
+ Rails::DevCaching.enable_by_file
+ end
+ end
+ end
+end