diff options
author | Dmitry Moskalchuk <dm@crystax.net> | 2013-02-19 11:13:19 +0400 |
---|---|---|
committer | Dmitry Moskalchuk <dm@crystax.net> | 2013-02-19 11:13:19 +0400 |
commit | f7ae1bce258695b07c674d8857112f927f412b90 (patch) | |
tree | d905b73edaeac379aabfd5973aa91912823f734d /app/helpers/namespaces_helper.rb | |
parent | a9c1b85e08e7e6ed1f209b8a5e2b43ea3b91dbb4 (diff) | |
download | gitlab-ce-f7ae1bce258695b07c674d8857112f927f412b90.tar.gz |
Syntax fix of sorting groups/users
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r-- | app/helpers/namespaces_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb index b19851889a7..a9a6c78654f 100644 --- a/app/helpers/namespaces_helper.rb +++ b/app/helpers/namespaces_helper.rb @@ -10,8 +10,8 @@ module NamespacesHelper global_opts = ["Global", [['/', Namespace.global_id]] ] - group_opts = ["Groups", groups.sort_by {|g| g.human_name}.map {|g| [g.human_name, g.id]} ] - users_opts = [ "Users", users.sort_by {|u| u.human_name}.map {|u| [u.human_name, u.id]} ] + group_opts = ["Groups", groups.sort_by(&:human_name).map {|g| [g.human_name, g.id]} ] + users_opts = [ "Users", users.sort_by(&:human_name).map {|u| [u.human_name, u.id]} ] options = [] options << global_opts if current_user.admin |