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
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