Skip to content

Commit

Permalink
Fix lost backward compatibility about return type of ProjectQuery#res…
Browse files Browse the repository at this point in the history
…ults_scope
  • Loading branch information
nishidayuya committed Nov 1, 2024
1 parent ac44461 commit 95c6817
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/models/project_query.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 95c6817

Please sign in to comment.