diff options
author | Go MAEDA <maeda@farend.jp> | 2020-10-20 14:44:12 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-10-20 14:44:12 +0000 |
commit | 84a4a4f8eda863750527a9254d0eddb1f0d63b83 (patch) | |
tree | 2808d8bc9264124b77dd36867e7b7e85928d7b27 /lib/redmine/menu_manager.rb | |
parent | b59af050cbb925fdc877de6a6005da183690f7e7 (diff) | |
download | redmine-84a4a4f8eda863750527a9254d0eddb1f0d63b83.tar.gz redmine-84a4a4f8eda863750527a9254d0eddb1f0d63b83.zip |
Fix a RuboCop offence Style/MethodDefParentheses (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@20152 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/menu_manager.rb')
-rw-r--r-- | lib/redmine/menu_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/menu_manager.rb b/lib/redmine/menu_manager.rb index 3b8752a85..db8e3e79c 100644 --- a/lib/redmine/menu_manager.rb +++ b/lib/redmine/menu_manager.rb @@ -359,7 +359,7 @@ module Redmine @children.inject(1) {|sum, node| sum + node.size} end - def each &block + def each(&block) yield self children { |child| child.each(&block) } end |