]> git.openstreetmap.org Git - rails.git/blobdiff - app/helpers/browse_helper.rb
Drop support for ruby 3.0
[rails.git] / app / helpers / browse_helper.rb
index 9ea38481137d77afeb46ccfe615860e4b2cecf24..69a8f8fa2e57eb5b76a717f98506c5f4752c33da 100644 (file)
@@ -44,9 +44,9 @@ module BrowseHelper
     t "printable_name.version", :version => object.version
   end
 
     t "printable_name.version", :version => object.version
   end
 
-  def element_strikethrough(object, &block)
+  def element_strikethrough(object, &)
     if object.redacted? || !object.visible?
     if object.redacted? || !object.visible?
-      tag.s(&block)
+      tag.s(&)
     else
       yield
     end
     else
       yield
     end