]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up app/helpers/application_helper.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 16:47:41 +0000 (16:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 25 Nov 2019 16:47:41 +0000 (16:47 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19298 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index d65cd916a3217ecbd2229cc3de428a38280f20cc..ab4849957260551d41e2e99d41829d30fbee577f 100644 (file)
@@ -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',