diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2015-08-05 21:39:54 +0200 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2015-08-05 21:39:54 +0200 |
commit | 8468fb1c6b6af61b91ece51bf34ec64daf8b4e52 (patch) | |
tree | 828918e75938e3b6965bf046682304bbef97f8b9 /railties/lib | |
parent | 2d00aa7a93b711d27f6672849cc456f14deab529 (diff) | |
download | rails-8468fb1c6b6af61b91ece51bf34ec64daf8b4e52.tar.gz rails-8468fb1c6b6af61b91ece51bf34ec64daf8b4e52.tar.bz2 rails-8468fb1c6b6af61b91ece51bf34ec64daf8b4e52.zip |
Use exist? instead of deprecated exists?
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/commands/server.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/server.rb b/railties/lib/rails/commands/server.rb index 8e7f206028..c8fb58ab05 100644 --- a/railties/lib/rails/commands/server.rb +++ b/railties/lib/rails/commands/server.rb @@ -34,7 +34,7 @@ module Rails opts.on("-P", "--pid=pid", String, "Specifies the PID file.", "Default: tmp/pids/server.pid") { |v| options[:pid] = v } - opts.on("-C", "--[no-]dev-caching", + opts.on("-C", "--[no-]dev-caching", "Specifies whether to perform caching in development.", "true or false") { |v| options[:caching] = v } @@ -121,7 +121,7 @@ module Rails end def delete_cache_file - FileUtils.rm("tmp/caching-dev.txt") if File.exists?("tmp/caching-dev.txt") + FileUtils.rm("tmp/caching-dev.txt") if File.exist?("tmp/caching-dev.txt") end def create_tmp_directories |