We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b075eac commit 5d5bc77Copy full SHA for 5d5bc77
lib/rails-footnotes/notes/controller_note.rb
@@ -14,7 +14,7 @@ def link
14
end
15
16
def valid?
17
- prefix? && controller_filename && File.exists?(controller_filename)
+ prefix? && controller_filename && File.exist?(controller_filename)
18
19
20
protected
lib/rails-footnotes/notes/view_note.rb
@@ -27,7 +27,7 @@ def link
27
28
29
30
- prefix? && filename && File.exists?(filename)
+ prefix? && filename && File.exist?(filename)
31
32
33
0 commit comments