Welcome to mirror list, hosted at ThFree Co, Russian Federation.

trending_projects_finder.rb « finders « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 81a12403801a4447a528228d5d204dc109a904b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
class TrendingProjectsFinder
  def execute(current_user, start_date = 1.month.ago)
    projects_for(current_user).trending(start_date)
  end

  private

  def projects_for(current_user)
    ProjectsFinder.new.execute(current_user)
  end
end