2011-10-09 00:36:38 +03:00
|
|
|
class DashboardController < ApplicationController
|
2011-10-11 23:00:00 +03:00
|
|
|
def index
|
|
|
|
@projects = current_user.projects.all
|
2011-10-31 22:57:16 +02:00
|
|
|
@active_projects = @projects.select(&:last_activity_date).sort_by(&:last_activity_date).reverse
|
2011-10-11 23:00:00 +03:00
|
|
|
end
|
2011-10-09 00:36:38 +03:00
|
|
|
end
|