1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

use "do end" instead of {} at RolesController

git-svn-id: http://svn.redmine.org/redmine/trunk@20305 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2020-11-08 13:02:50 +00:00
parent f234e28154
commit 2f91c59439

View File

@ -30,13 +30,13 @@ class RolesController < ApplicationController
def index def index
respond_to do |format| respond_to do |format|
format.html { format.html do
@roles = Role.sorted.to_a @roles = Role.sorted.to_a
render :layout => false if request.xhr? render :layout => false if request.xhr?
} end
format.api { format.api do
@roles = Role.givable.to_a @roles = Role.givable.to_a
} end
end end
end end
@ -79,10 +79,10 @@ class RolesController < ApplicationController
@role.safe_attributes = params[:role] @role.safe_attributes = params[:role]
if @role.save if @role.save
respond_to do |format| respond_to do |format|
format.html { format.html do
flash[:notice] = l(:notice_successful_update) flash[:notice] = l(:notice_successful_update)
redirect_to roles_path(:page => params[:page]) redirect_to roles_path(:page => params[:page])
} end
format.js { head 200 } format.js { head 200 }
end end
else else