]> source.dussan.org Git - redmine.git/commitdiff
use the lambda method for multiline lambdas at ApplicationHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Nov 2020 14:46:21 +0000 (14:46 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 26 Nov 2020 14:46:21 +0000 (14:46 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20498 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index dd4a4f195ec2066209c5d9721c46fe8f7a5c2949..afbe528c76f88d2706c1007486fdbc132c1bf017 100644 (file)
@@ -511,7 +511,7 @@ module ApplicationHelper
     end
     jump = params[:jump].presence || current_menu_item
     s = (+'').html_safe
-    build_project_link = ->(project, level = 0) do
+    build_project_link = lambda do |project, level = 0|
       padding = level * 16
       text = content_tag('span', project.name, :style => "padding-left:#{padding}px;")
       s << link_to(text, project_path(project, :jump => jump),