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 --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config/routes.rb') 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 -- cgit v1.2.3