summaryrefslogtreecommitdiffstats
path: root/config
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 /config
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 'config')
-rw-r--r--config/application.rb2
-rw-r--r--config/boot.rb2
-rw-r--r--config/routes.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/config/application.rb b/config/application.rb
index e74fcbf67..902007d03 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -83,7 +83,7 @@ module RedmineApp
:same_site => :lax
)
- if File.exists?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
+ if File.exist?(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
instance_eval File.read(File.join(File.dirname(__FILE__), 'additional_environment.rb'))
end
end
diff --git a/config/boot.rb b/config/boot.rb
index 4bb97ac51..7479b5aff 100644
--- a/config/boot.rb
+++ b/config/boot.rb
@@ -3,4 +3,4 @@
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
-require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
+require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
diff --git a/config/routes.rb b/config/routes.rb
index efb6db8e1..b608d5b7f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -396,7 +396,7 @@ Rails.application.routes.draw do
Dir.glob File.expand_path("#{Redmine::Plugin.directory}/*") do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
- if File.exists?(file)
+ if File.exist?(file)
begin
instance_eval File.read(file)
rescue SyntaxError, StandardError => e