]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of app/models/issue.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Sep 2020 15:02:02 +0000 (15:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 26 Sep 2020 15:02:02 +0000 (15:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20083 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index a1066c4c268c0322da0c03843358ae93a851e396..8c3146137f0be3e661ce610bcf9e128573ebf52a 100644 (file)
@@ -1191,10 +1191,10 @@ 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" +
-        " ON ancestors.root_id = #{Issue.table_name}.root_id" +
-        " AND ancestors.lft <= #{Issue.table_name}.lft AND ancestors.rgt >= #{Issue.table_name}.rgt"
-      ).
+      "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"
+    ).
       where(:ancestors => {:id => issues.map(&:id)})
   end
 
@@ -1417,10 +1417,11 @@ class Issue < ActiveRecord::Base
   def self.update_versions_from_hierarchy_change(project)
     moved_project_ids = project.self_and_descendants.reload.pluck(:id)
     # Update issues of the moved projects and issues assigned to a version of a moved project
-    Issue.update_versions(
-            ["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
-             moved_project_ids, moved_project_ids]
-          )
+    Issue.
+      update_versions(
+        ["#{Version.table_name}.project_id IN (?) OR #{Issue.table_name}.project_id IN (?)",
+         moved_project_ids, moved_project_ids]
+      )
   end
 
   def parent_issue_id=(arg)