Use File.exist? instead of File.exists?

In Ruby 3.x, `File.exists?` is deprecated and outputs a warning.
This commit is contained in:
benjamin wil
2022-02-19 19:39:11 -08:00
parent 0b18f475f0
commit 1641fa4e90
+1 -1
View File
@@ -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.