From 6f30f70c43c22129dfd07230de94dd544f4b1a1c Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 25 Nov 2019 16:47:41 +0000 Subject: [PATCH] code layout clean up app/helpers/application_helper.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19298 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d65cd916a..ab4849957 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1112,7 +1112,13 @@ module ApplicationHelper repository = project.repository end if prefix == 'commit' - if repository && (changeset = Changeset.visible.where("repository_id = ? AND scmid LIKE ?", repository.id, "#{name}%").first) + if repository && + (changeset = + Changeset.visible. + where( + "repository_id = ? AND scmid LIKE ?", + repository.id, "#{name}%" + ).first) link = link_to( h("#{project_prefix}#{repo_prefix}#{name}"), {:only_path => only_path, :controller => 'repositories', -- 2.39.5