From 8468fb1c6b6af61b91ece51bf34ec64daf8b4e52 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen <kaspth@gmail.com> Date: Wed, 5 Aug 2015 21:39:54 +0200 Subject: Use exist? instead of deprecated exists? --- railties/lib/rails/commands/server.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'railties/lib/rails') 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 -- cgit v1.2.3