Skip to content

Commit

Permalink
Ruby v3.2 deprecates File.exists? uses File.exist? instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ewlarson committed Jan 11, 2024
1 parent 0a0ff5e commit 3fd7d23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/robots/robots.text.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GeoPortal robots.txt

<%- if File.exists? "#{Rails.root}/public/sitemap.xml.gz" -%>
<%- if File.exist? "#{Rails.root}/public/sitemap.xml.gz" -%>
Sitemap: <%= "#{root_url}sitemap.xml.gz" %>
<%- end -%>

Expand Down

0 comments on commit 3fd7d23

Please sign in to comment.