summaryrefslogtreecommitdiffstats
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-26 14:46:21 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-26 14:46:21 +0000
commite5bdb37624b0849d6e8c7b0cca6846461ce494a6 (patch)
treedd07481ad927ded1ef02a3ef4750884446d1880d /app/helpers/application_helper.rb
parent99f567a7e3d820b2730f51ddc9133ac68b11732b (diff)
downloadredmine-e5bdb37624b0849d6e8c7b0cca6846461ce494a6.tar.gz
redmine-e5bdb37624b0849d6e8c7b0cca6846461ce494a6.zip
use the lambda method for multiline lambdas at ApplicationHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@20498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index dd4a4f195..afbe528c7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -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),