Dashboard to resource

This commit is contained in:
Dmitriy Zaporozhets 2013-01-27 12:56:20 +02:00
parent bd3b677b86
commit 6b01196fb2
11 changed files with 45 additions and 32 deletions

View file

@ -2,9 +2,9 @@ class DashboardController < ApplicationController
respond_to :html
before_filter :load_projects
before_filter :event_filter, only: :index
before_filter :event_filter, only: :show
def index
def show
@groups = current_user.authorized_groups
@has_authorized_projects = @projects.count > 0
@teams = current_user.authorized_teams