]> source.dussan.org Git - sonarqube.git/commitdiff
Remove unused constant in roles_controller.rb
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 10 Jul 2012 09:30:48 +0000 (11:30 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 10 Jul 2012 12:19:56 +0000 (14:19 +0200)
sonar-server/src/main/webapp/WEB-INF/app/controllers/roles_controller.rb

index f75f0009086384ca2a7aa9dd86f39ca06722ee2b..fd165668a9d7252c8d81fb2f50c0119fb826f019 100644 (file)
@@ -21,7 +21,6 @@ class RolesController < ApplicationController
   helper RolesHelper
 
   SECTION=Navigation::SECTION_CONFIGURATION
-  PER_PAGE = 2
 
   before_filter :admin_required
   verify :method => :post, :only => [:set_users, :set_groups, :set_default_project_groups, :set_default_project_users], :redirect_to => {:action => 'global'}
@@ -52,6 +51,7 @@ class RolesController < ApplicationController
 
     @pagination = Api::Pagination.new(params)
     @projects=Project.find(:all,
+                           :include => ['user_roles','group_roles'],
                            :joins => joins,
                            :conditions => [conditions_sql, conditions_values],
                            :order => 'projects.name',