diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:02:50 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-11-08 13:02:50 +0000 |
commit | 2f91c59439f122a9ce29afb19e0d14ff77285154 (patch) | |
tree | 7ef9411147ba2ecbec1a91e272dccada9159774e /app/controllers | |
parent | f234e2815473d757410af837bae42a8641bf36d5 (diff) | |
download | redmine-2f91c59439f122a9ce29afb19e0d14ff77285154.tar.gz redmine-2f91c59439f122a9ce29afb19e0d14ff77285154.zip |
use "do end" instead of {} at RolesController
git-svn-id: http://svn.redmine.org/redmine/trunk@20305 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/roles_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 07745023d..750046ea0 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -30,13 +30,13 @@ class RolesController < ApplicationController def index respond_to do |format| - format.html { + format.html do @roles = Role.sorted.to_a render :layout => false if request.xhr? - } - format.api { + end + format.api do @roles = Role.givable.to_a - } + end end end @@ -79,10 +79,10 @@ class RolesController < ApplicationController @role.safe_attributes = params[:role] if @role.save respond_to do |format| - format.html { + format.html do flash[:notice] = l(:notice_successful_update) redirect_to roles_path(:page => params[:page]) - } + end format.js { head 200 } end else |