]> source.dussan.org Git - redmine.git/commitdiff
use "do end" instead of {} at RolesController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Nov 2020 13:02:50 +0000 (13:02 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Nov 2020 13:02:50 +0000 (13:02 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20305 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/roles_controller.rb

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