]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of Issue#self_and_descendants
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:21 +0000 (16:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 11 Jul 2020 16:21:21 +0000 (16:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19885 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 0c691f3556749f184d3bbdcf9cf8a4beeddb19c4..05a497c001938198d39e8080d18c247b80788580 100644 (file)
@@ -1187,7 +1187,8 @@ class Issue < ActiveRecord::Base
 
   # Returns a scope of the given issues and their descendants
   def self.self_and_descendants(issues)
-    Issue.joins("JOIN #{Issue.table_name} ancestors" +
+    Issue.joins(
+        "JOIN #{Issue.table_name} ancestors" +
         " ON ancestors.root_id = #{Issue.table_name}.root_id" +
         " AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
       ).