Use File.exist? instead of File.exists?
In Ruby 3.x, `File.exists?` is deprecated and outputs a warning.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user