BigW Consortium Gitlab

trending_projects_finder.rb 241 Bytes
Newer Older
Dmitriy Zaporozhets committed
1
class TrendingProjectsFinder
2 3
  def execute(current_user, start_date = 1.month.ago)
    projects_for(current_user).trending(start_date)
Dmitriy Zaporozhets committed
4 5 6 7 8 9 10 11
  end

  private

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