From 7195798757d077be18d063001d8cc65ee351fc3e Mon Sep 17 00:00:00 2001 From: Rafael dos Santos Silva Date: Fri, 24 Feb 2023 12:07:56 -0300 Subject: [PATCH] FIX: (File|Dir).exists? is deprecated --- plugin.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin.rb b/plugin.rb index dab2f85..88fdfbd 100644 --- a/plugin.rb +++ b/plugin.rb @@ -73,7 +73,7 @@ def fail_auth(reason) end def load_user_descriptions file_path = "#{File.expand_path(File.dirname(__FILE__))}/ldap_users.yml" - return nil unless File.exists?(file_path) + return nil unless File.exist?(file_path) return YAML.load_file(file_path) end end