debian-mirror-gitlab/app/finders/trending_projects_finder.rb

12 lines
241 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
class TrendingProjectsFinder
2015-10-24 18:46:33 +05:30
def execute(current_user, start_date = 1.month.ago)
projects_for(current_user).trending(start_date)
2014-09-02 18:07:02 +05:30
end
private
def projects_for(current_user)
ProjectsFinder.new.execute(current_user)
end
end