]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of RolesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 Nov 2020 13:30:39 +0000 (13:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 19 Nov 2020 13:30:39 +0000 (13:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20434 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/roles_controller.rb

index 750046ea0ea0993183b220b6343056bfbb7e28f3..27861d35df768ea48aa53e9a715cb726512d9b76 100644 (file)
@@ -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