From 9c3632f5fde745ae39cd6849916ee0cab8b05d9e Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Tue, 20 Sep 2016 15:40:24 +0200 Subject: [PATCH] modernize scope --- lib/open_project/global_roles/patches/roles_controller_patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/open_project/global_roles/patches/roles_controller_patch.rb b/lib/open_project/global_roles/patches/roles_controller_patch.rb index d35218f498..37350a0d98 100644 --- a/lib/open_project/global_roles/patches/roles_controller_patch.rb +++ b/lib/open_project/global_roles/patches/roles_controller_patch.rb @@ -56,7 +56,7 @@ module OpenProject::GlobalRoles::Patches flash[:notice] = l(:notice_successful_create) redirect_to action: 'index' else - @roles = Role.all order: 'builtin, position' + @roles = Role.order('builtin, position').all @member_permissions = Role.new.setable_permissions @global_permissions = GlobalRole.setable_permissions render template: 'roles/new'