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

app/controllers/enumerations_controller.rb

index 61fabe66ced09cee32ed9320c7d38d20d9dcec48..0eda91e6903f3e03159cca6b0de0a9af5c6b2adc 100644 (file)
@@ -32,14 +32,14 @@ class EnumerationsController < ApplicationController
   def index
     respond_to do |format|
       format.html
-      format.api {
+      format.api do
         @klass = Enumeration.get_subclass(params[:type])
         if @klass
           @enumerations = @klass.shared.sorted.to_a
         else
           render_404
         end
-      }
+      end
     end
   end
 
@@ -61,10 +61,10 @@ class EnumerationsController < ApplicationController
   def update
     if @enumeration.update(enumeration_params)
       respond_to do |format|
-        format.html {
+        format.html do
           flash[:notice] = l(:notice_successful_update)
           redirect_to enumerations_path
-        }
+        end
         format.js { head 200 }
       end
     else