From 20496b516fa02079d459ed06ba4f13105f3be710 2014-04-08 11:22:17 From: Toshi MARUYAMA Date: 2014-04-08 11:22:17 Subject: [PATCH] code format clean up Issue#update_versions_from_hierarchy_change git-svn-id: http://svn.redmine.org/redmine/trunk@13081 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/models/issue.rb b/app/models/issue.rb index 9162b49..b20a730 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -1107,7 +1107,10 @@ class Issue < ActiveRecord::Base def self.update_versions_from_hierarchy_change(project) moved_project_ids = project.self_and_descendants.reload.collect(&: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)