]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Use file_exists to provide File.exists? for ruby 3.2
[rails.git] / app / helpers / browse_helper.rb
index 1e9465f8035d179a1b6592a6a0bbf820f86d4eab..0f533770b8042165245e0d036b066626c4b97a30 100644 (file)
@@ -1,5 +1,5 @@
 module BrowseHelper
-  def printable_name(object, version = false)
+  def printable_name(object, version: false)
     id = if object.id.is_a?(Array)
            object.id[0]
          else