debian-mirror-gitlab/app/finders/trending_projects_finder.rb
2015-10-24 18:46:33 +05:30

11 lines
241 B
Ruby

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