]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at app/models/issue_query.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:18 +0000 (12:31 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 Nov 2020 12:31:18 +0000 (12:31 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20289 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue_query.rb

index aae3acf64aa53822b65b70d4fca8945cf5629984..95e9dedbd5b8730016ddd55ac3a5c0cf43ebec05 100644 (file)
@@ -215,9 +215,9 @@ class IssueQuery < Query
 
     add_available_filter "issue_id", :type => :integer, :label => :label_issue
 
-    Tracker.disabled_core_fields(trackers).each {|field|
+    Tracker.disabled_core_fields(trackers).each do |field|
       delete_available_filter field
-    }
+    end
   end
 
   def available_columns
@@ -484,9 +484,9 @@ class IssueQuery < Query
     end
     groups ||= []
 
-    members_of_groups = groups.inject([]) {|user_ids, group|
+    members_of_groups = groups.inject([]) do |user_ids, group|
       user_ids + group.user_ids + [group.id]
-    }.uniq.compact.sort.collect(&:to_s)
+    end.uniq.compact.sort.collect(&:to_s)
 
     '(' + sql_for_field("assigned_to_id", operator, members_of_groups, Issue.table_name, "assigned_to_id", false) + ')'
   end