Skip to content

Commit

Permalink
File.exists? → File.exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Nov 23, 2023
1 parent b075eac commit 5d5bc77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/rails-footnotes/notes/controller_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/rails-footnotes/notes/view_note.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def link
end

def valid?
prefix? && filename && File.exists?(filename)
prefix? && filename && File.exist?(filename)
end

protected
Expand Down

0 comments on commit 5d5bc77

Please sign in to comment.