11 lines
241 B
Ruby
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
|