Fix bug getting started message when navigate to personal projects w/o them exist

This commit is contained in:
Dmitriy Zaporozhets 2012-12-04 11:18:13 +02:00
parent 87e0429fb1
commit 7f6bbf06f8
6 changed files with 48 additions and 43 deletions

View file

@ -7,6 +7,8 @@ class DashboardController < ApplicationController
def index
@groups = current_user.authorized_groups
@has_authorized_projects = @projects.count > 0
@projects = case params[:scope]
when 'personal' then
@projects.personal(current_user)