From 5d5bc77c60b12fbdf5244a0356a7712ea4e36b65 Mon Sep 17 00:00:00 2001 From: Andre Arko Date: Wed, 22 Nov 2023 18:04:44 -0800 Subject: [PATCH] =?UTF-8?q?File.exists=3F=20=E2=86=92=20File.exist=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rails-footnotes/notes/controller_note.rb | 2 +- lib/rails-footnotes/notes/view_note.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/rails-footnotes/notes/controller_note.rb b/lib/rails-footnotes/notes/controller_note.rb index 4a38982d..6b724236 100644 --- a/lib/rails-footnotes/notes/controller_note.rb +++ b/lib/rails-footnotes/notes/controller_note.rb @@ -14,7 +14,7 @@ def link end def valid? - prefix? && controller_filename && File.exists?(controller_filename) + prefix? && controller_filename && File.exist?(controller_filename) end protected diff --git a/lib/rails-footnotes/notes/view_note.rb b/lib/rails-footnotes/notes/view_note.rb index a0fcffe8..29c435d9 100644 --- a/lib/rails-footnotes/notes/view_note.rb +++ b/lib/rails-footnotes/notes/view_note.rb @@ -27,7 +27,7 @@ def link end def valid? - prefix? && filename && File.exists?(filename) + prefix? && filename && File.exist?(filename) end protected