diff --git a/app/models/project_query.rb b/app/models/project_query.rb index a1bb52a2c..6defbcc83 100644 --- a/app/models/project_query.rb +++ b/app/models/project_query.rb @@ -166,11 +166,10 @@ def results_scope(options={}) scope = scope.preload(:parent) end - projects = scope.to_a if has_column?(:last_activity_date) Project.load_last_activity_date(scope) end - projects + scope end end