diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-08 15:21:40 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-02-08 15:21:40 +0100 |
commit | 3b693dfb9384d15fcd3bbaa5f47da69019b2bf51 (patch) | |
tree | d2f68dbf32dc42f937af2fa9ff4a453e7b443df2 /railties/lib/rails/commands | |
parent | d3150c81061ff4e6d052ac1ff2dcd62a1daca28f (diff) | |
parent | ba2aea98079fb50a2c210001deb16ab84fac3b41 (diff) | |
download | rails-3b693dfb9384d15fcd3bbaa5f47da69019b2bf51.tar.gz rails-3b693dfb9384d15fcd3bbaa5f47da69019b2bf51.tar.bz2 rails-3b693dfb9384d15fcd3bbaa5f47da69019b2bf51.zip |
Merge pull request #23552 from bronson/revert-dev-cache
revert dev:cache to rake task, fixes #23410
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/dev_cache.rb | 21 |
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 |