From 4db7397d2a46e745da298a4abd5d6f9e3002e2d2 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 27 Dec 2021 03:20:31 +0000 Subject: Use File.exist? instead of deprecated File.exists? (#36358). git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/import.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/models/import.rb b/app/models/import.rb index a9c40270a..5665d7316 100644 --- a/app/models/import.rb +++ b/app/models/import.rb @@ -111,7 +111,7 @@ class Import < ActiveRecord::Base # Returns true if the file to import exists def file_exists? - filepath.present? && File.exists?(filepath) + filepath.present? && File.exist?(filepath) end # Returns the headers as an array that -- cgit v1.2.3