diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-12 11:35:18 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-07-12 11:35:18 +0000 |
commit | 3f13c37c3c2cf950969dc50f7393abfb04e17b2a (patch) | |
tree | f28591a64b720fdb262a57e073d379b3a3bd985d /app/helpers | |
parent | 7a7542b51dc16bd1a68ec6670b2c2a92700472ba (diff) | |
download | redmine-3f13c37c3c2cf950969dc50f7393abfb04e17b2a.tar.gz redmine-3f13c37c3c2cf950969dc50f7393abfb04e17b2a.zip |
do not use spaces in lambda literals of ApplicationHelper
git-svn-id: http://svn.redmine.org/redmine/trunk@19892 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index c9869d3d8..d3dc9649b 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -193,16 +193,16 @@ module ApplicationHelper end RECORD_LINK = { - 'CustomValue' => -> (custom_value) { link_to_record(custom_value.customized) }, - 'Document' => -> (document) { link_to(document.title, document_path(document)) }, - 'Group' => -> (group) { link_to(group.name, group_path(group)) }, - 'Issue' => -> (issue) { link_to_issue(issue, :subject => false) }, - 'Message' => -> (message) { link_to_message(message) }, - 'News' => -> (news) { link_to(news.title, news_path(news)) }, - 'Project' => -> (project) { link_to_project(project) }, - 'User' => -> (user) { link_to_user(user) }, - 'Version' => -> (version) { link_to_version(version) }, - 'WikiPage' => -> (wiki_page) { link_to(wiki_page.pretty_title, project_wiki_page_path(wiki_page.project, wiki_page.title)) } + 'CustomValue' => ->(custom_value) {link_to_record(custom_value.customized)}, + 'Document' => ->(document) {link_to(document.title, document_path(document))}, + 'Group' => ->(group) {link_to(group.name, group_path(group))}, + 'Issue' => ->(issue) {link_to_issue(issue, :subject => false)}, + 'Message' => ->(message) {link_to_message(message)}, + 'News' => ->(news) {link_to(news.title, news_path(news))}, + 'Project' => ->(project) {link_to_project(project)}, + 'User' => ->(user) {link_to_user(user)}, + 'Version' => ->(version) {link_to_version(version)}, + 'WikiPage' => ->(wiki_page) {link_to(wiki_page.pretty_title,project_wiki_page_path(wiki_page.project, wiki_page.title))} } def link_to_record(record) @@ -214,8 +214,8 @@ module ApplicationHelper ATTACHMENT_CONTAINER_LINK = { # Custom list, since project/version attachments are listed in the files # view and not in the project/milestone view - 'Project' => -> (project) { link_to(l(:project_module_files), project_files_path(project)) }, - 'Version' => -> (version) { link_to(l(:project_module_files), project_files_path(version.project)) }, + 'Project' => ->(project) {link_to(l(:project_module_files), project_files_path(project))}, + 'Version' => ->(version) {link_to(l(:project_module_files), project_files_path(version.project))}, } def link_to_attachment_container(attachment_container) |