Activities page added. Dashboard few specs. Preparing for 2.3

This commit is contained in:
Dmitriy Zaporozhets 2012-03-19 22:52:16 +02:00
parent d87abbe9af
commit 724ea16c34
17 changed files with 122 additions and 73 deletions

View file

@ -34,4 +34,9 @@ class DashboardController < ApplicationController
format.atom { render :layout => false }
end
end
def activities
@projects = current_user.projects.all
@events = Event.where(:project_id => @projects.map(&:id)).recent.limit(40)
end
end