From 1641fa4e90d852014e18abc2261d9f20bd2f8fd6 Mon Sep 17 00:00:00 2001 From: benjamin wil Date: Sat, 19 Feb 2022 19:39:11 -0800 Subject: [PATCH] Use `File.exist?` instead of `File.exists?` In Ruby 3.x, `File.exists?` is deprecated and outputs a warning. --- lib/gollum/views/template_cascade.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/views/template_cascade.rb b/lib/gollum/views/template_cascade.rb index 9929f8dd..ff567332 100644 --- a/lib/gollum/views/template_cascade.rb +++ b/lib/gollum/views/template_cascade.rb @@ -17,7 +17,7 @@ module Precious File.join(template_priority_path, "#{name}.#{template_extension}") end - priority && File.exists?(priority) ? priority : default + priority && File.exist?(priority) ? priority : default end # Method should track lib/mustache/settings.rb from Mustache project.