aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/dev_cache.rb
diff options
context:
space:
mode:
authorScott Bronson <brons_git@rinspin.com>2016-02-07 14:21:40 -0800
committerScott Bronson <brons_git@rinspin.com>2016-02-07 14:32:43 -0800
commitba2aea98079fb50a2c210001deb16ab84fac3b41 (patch)
tree457dcf4e13b9b03b9603ac402041617fc41ef35b /railties/lib/rails/commands/dev_cache.rb
parent8526e9bed21a119266e886c3316d3fe10c9af5ce (diff)
downloadrails-ba2aea98079fb50a2c210001deb16ab84fac3b41.tar.gz
rails-ba2aea98079fb50a2c210001deb16ab84fac3b41.tar.bz2
rails-ba2aea98079fb50a2c210001deb16ab84fac3b41.zip
revert dev:cache to rake task, fixes #23410
Diffstat (limited to 'railties/lib/rails/commands/dev_cache.rb')
-rw-r--r--railties/lib/rails/commands/dev_cache.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/railties/lib/rails/commands/dev_cache.rb b/railties/lib/rails/commands/dev_cache.rb
deleted file mode 100644
index ec96e8f630..0000000000
--- a/railties/lib/rails/commands/dev_cache.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-require 'rails/command'
-
-module Rails
- module Commands
- # This is a wrapper around the Rails dev:cache command
- class DevCache < Command
- set_banner :dev_cache, 'Toggle development mode caching on/off'
- def dev_cache
- if File.exist? 'tmp/caching-dev.txt'
- File.delete 'tmp/caching-dev.txt'
- puts 'Development mode is no longer being cached.'
- else
- FileUtils.touch 'tmp/caching-dev.txt'
- puts 'Development mode is now being cached.'
- end
-
- FileUtils.touch 'tmp/restart.txt'
- end
- end
- end
-end