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

app/controllers/boards_controller.rb

index 86eb3d278b917ea340d55396c3aae25f23b20071..d3b02e0fff4727cd8e778a7c403f85dec796c0c0 100644 (file)
@@ -37,7 +37,7 @@ class BoardsController < ApplicationController
 
   def show
     respond_to do |format|
-      format.html {
+      format.html do
         sort_init 'updated_on', 'desc'
         sort_update 'created_on' => "#{Message.table_name}.id",
                     'replies' => "#{Message.table_name}.replies_count",
@@ -54,15 +54,15 @@ class BoardsController < ApplicationController
           to_a
         @message = Message.new(:board => @board)
         render :action => 'show', :layout => !request.xhr?
-      }
-      format.atom {
+      end
+      format.atom do
         @messages = @board.messages.
           reorder(:id => :desc).
           includes(:author, :board).
           limit(Setting.feeds_limit.to_i).
           to_a
         render_feed(@messages, :title => "#{@project}: #{@board}")
-      }
+      end
     end
   end
 
@@ -89,10 +89,10 @@ class BoardsController < ApplicationController
     @board.safe_attributes = params[:board]
     if @board.save
       respond_to do |format|
-        format.html {
+        format.html do
           flash[:notice] = l(:notice_successful_update)
           redirect_to_settings_in_projects
-        }
+        end
         format.js { head 200 }
       end
     else