Syntax fix of sorting groups/users

This commit is contained in:
Dmitry Moskalchuk 2013-02-19 11:13:19 +04:00
parent a9c1b85e08
commit f7ae1bce25
2 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@ class DashboardController < ApplicationController
before_filter :event_filter, only: :show
def show
@groups = current_user.authorized_groups.sort_by { |x| x.human_name }
@groups = current_user.authorized_groups.sort_by(&:human_name)
@has_authorized_projects = @projects.count > 0
@teams = current_user.authorized_teams
@projects_count = @projects.count