summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
commit4db7397d2a46e745da298a4abd5d6f9e3002e2d2 (patch)
treee86884a4edf8e414b6dc32582763458a724e88a2 /app
parent91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8 (diff)
downloadredmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.tar.gz
redmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.zip
Use File.exist? instead of deprecated File.exists? (#36358).
git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/models/import.rb2
1 files changed, 1 insertions, 1 deletions
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