summaryrefslogtreecommitdiffstats
path: root/app/models/time_entry_query.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-27 02:19:20 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-01-27 02:19:20 +0000
commit4f996fa5c20ceee635ff553a9bedd67080bcc9dd (patch)
treecc081a746f594c14d6a238ff8e1f209e91a34bcf /app/models/time_entry_query.rb
parentea8febad03a03908b885897dd54e4a4391f51f32 (diff)
downloadredmine-4f996fa5c20ceee635ff553a9bedd67080bcc9dd.tar.gz
redmine-4f996fa5c20ceee635ff553a9bedd67080bcc9dd.zip
remove unneeded Relation#all from TimeEntryQuery model
git-svn-id: http://svn.redmine.org/redmine/trunk@12732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/time_entry_query.rb')
-rw-r--r--app/models/time_entry_query.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/models/time_entry_query.rb b/app/models/time_entry_query.rb
index 02bc10090..918cc348c 100644
--- a/app/models/time_entry_query.rb
+++ b/app/models/time_entry_query.rb
@@ -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