classTrendingProjectsFinderdefexecute(current_user,start_date=nil)start_date||=Date.today-1.monthprojects=projects_for(current_user)# Determine trending projects based on comments count# for period of time - ex. monthprojects.joins(:notes).where('notes.created_at > ?',start_date).select("projects.*, count(notes.id) as ncount").