From: Toshi MARUYAMA Date: Thu, 19 Nov 2020 13:30:39 +0000 (+0000) Subject: remove spaces inside {} of RolesController X-Git-Tag: 4.2.0~384 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6ed20316b09376cd734ef5121ddd5b9f81fc687b;p=redmine.git remove spaces inside {} of RolesController git-svn-id: http://svn.redmine.org/redmine/trunk@20434 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/roles_controller.rb b/app/controllers/roles_controller.rb index 750046ea0..27861d35d 100644 --- a/app/controllers/roles_controller.rb +++ b/app/controllers/roles_controller.rb @@ -83,12 +83,12 @@ class RolesController < ApplicationController flash[:notice] = l(:notice_successful_update) redirect_to roles_path(:page => params[:page]) end - format.js { head 200 } + format.js {head 200} end else respond_to do |format| - format.html { render :action => 'edit' } - format.js { head 422 } + format.html {render :action => 'edit'} + format.js {head 422} end end end @@ -108,7 +108,7 @@ class RolesController < ApplicationController scope = scope.where(:id => params[:ids]) end @roles = scope.to_a - @permissions = Redmine::AccessControl.permissions.select { |p| !p.public? } + @permissions = Redmine::AccessControl.permissions.select {|p| !p.public?} end def update_permissions