summaryrefslogtreecommitdiffstats
path: root/app/controllers/roles_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/roles_controller.rb')
-rw-r--r--app/controllers/roles_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb
index f3fa8f102..2732a89a1 100644
--- a/app/controllers/roles_controller.rb
+++ b/app/controllers/roles_controller.rb
@@ -28,8 +28,8 @@ class RolesController < ApplicationController
def index
respond_to do |format|
format.html {
- @role_pages, @roles = paginate Role.sorted, :per_page => 25
- render :action => "index", :layout => false if request.xhr?
+ @roles = Role.sorted.to_a
+ render :layout => false if request.xhr?
}
format.api {
@roles = Role.givable.to_a