]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/ArgumentsForwarding (#39887).
authorGo MAEDA <maeda@farend.jp>
Thu, 18 Jan 2024 01:31:55 +0000 (01:31 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 18 Jan 2024 01:31:55 +0000 (01:31 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22612 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/menu_manager.rb

index 6f4e1b54fc065ae8ed5b044cd50642fe9d5c391f..39922b96ca3df4eb7b04177ae12b1cf01a2502d1 100644 (file)
@@ -367,9 +367,9 @@ module Redmine
         @children.inject(1) {|sum, node| sum + node.size}
       end
 
-      def each(&block)
+      def each(...)
         yield self
-        children {|child| child.each(&block)}
+        children {|child| child.each(...)}
       end
 
       # Adds a child at first position