2014-07-23 04:13:33 -04:00
|
|
|
class TrendingProjectsFinder
|
2015-10-06 10:35:51 -04:00
|
|
|
def execute(current_user, start_date = 1.month.ago)
|
|
|
|
projects_for(current_user).trending(start_date)
|
2014-07-23 04:13:33 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def projects_for(current_user)
|
|
|
|
ProjectsFinder.new.execute(current_user)
|
|
|
|
end
|
|
|
|
end
|