]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Merge remote-tracking branch 'upstream/pull/4178'
[rails.git] / app / helpers / browse_helper.rb
index 4519567d2b7f8f7af1c81b8cd3b5f4704576f9cf..0f533770b8042165245e0d036b066626c4b97a30 100644 (file)
@@ -1,5 +1,5 @@
 module BrowseHelper
 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
     id = if object.id.is_a?(Array)
            object.id[0]
          else
@@ -44,7 +44,7 @@ module BrowseHelper
     if object.redacted?
       ""
     else
     if object.redacted?
       ""
     else
-      h(icon_tags(object).map { |k, v| k + "=" + v }.to_sentence)
+      h(icon_tags(object).map { |k, v| "#{k}=#{v}" }.to_sentence)
     end
   end
 
     end
   end