]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from TimeEntryQuery model
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 02:19:20 +0000 (02:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 27 Jan 2014 02:19:20 +0000 (02:19 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12732 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/time_entry_query.rb

index 02bc10090647fbf75e383c2cff5c9ca8d052f122..918cc348c91774fb270508850fca85ce61b8299b 100644 (file)
@@ -91,8 +91,10 @@ class TimeEntryQuery < Query
   def available_columns
     return @available_columns if @available_columns
     @available_columns = self.class.available_columns.dup
-    @available_columns += TimeEntryCustomField.visible.all.map {|cf| QueryCustomFieldColumn.new(cf) }
-    @available_columns += IssueCustomField.visible.all.map {|cf| QueryAssociationCustomFieldColumn.new(:issue, cf) }
+    @available_columns += TimeEntryCustomField.visible.
+                            map {|cf| QueryCustomFieldColumn.new(cf) }
+    @available_columns += IssueCustomField.visible.
+                            map {|cf| QueryAssociationCustomFieldColumn.new(:issue, cf) }
     @available_columns
   end