modernize scope

pull/6827/head
Jens Ulferts 8 years ago committed by Oliver Günther
parent ebd7ed9188
commit 9c3632f5fd
  1. 2
      lib/open_project/global_roles/patches/roles_controller_patch.rb

@ -56,7 +56,7 @@ module OpenProject::GlobalRoles::Patches
flash[:notice] = l(:notice_successful_create) flash[:notice] = l(:notice_successful_create)
redirect_to action: 'index' redirect_to action: 'index'
else else
@roles = Role.all order: 'builtin, position' @roles = Role.order('builtin, position').all
@member_permissions = Role.new.setable_permissions @member_permissions = Role.new.setable_permissions
@global_permissions = GlobalRole.setable_permissions @global_permissions = GlobalRole.setable_permissions
render template: 'roles/new' render template: 'roles/new'

Loading…
Cancel
Save