diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-02-15 16:41:16 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-02-15 16:41:16 +0000 |
commit | 038a88e970aa7d0512258a903614b99e5f7e98ae (patch) | |
tree | 797d592057d03f77fe17a656904ea08e22dacfb1 /app/controllers/roles_controller.rb | |
parent | cec2b20793704babbc8bae3f4b15e71f5c9a6ef0 (diff) | |
download | redmine-038a88e970aa7d0512258a903614b99e5f7e98ae.tar.gz redmine-038a88e970aa7d0512258a903614b99e5f7e98ae.zip |
Refactor: Merged RolesController#list and #index
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3435 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/roles_controller.rb')
-rw-r--r-- | app/controllers/roles_controller.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index c701cac74..00902735c 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -21,16 +21,11 @@ class RolesController < ApplicationController before_filter :require_admin verify :method => :post, :only => [ :destroy, :move ], - :redirect_to => { :action => :list } + :redirect_to => { :action => :index } def index - list - render :action => 'list' unless request.xhr? - end - - def list @role_pages, @roles = paginate :roles, :per_page => 25, :order => 'builtin, position' - render :action => "list", :layout => false if request.xhr? + render :action => "index", :layout => false if request.xhr? end def new |