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

app/controllers/messages_controller.rb

index 45c5b3156b68f1b20f81660430e54d8a9137bb8d..9aa5541bef0202f93b23a3a74cf2f8ac9bd45379 100644 (file)
@@ -63,7 +63,7 @@ class MessagesController < ApplicationController
     if request.post?
       @message.save_attachments(params[:attachments])
       if @message.save
-        call_hook(:controller_messages_new_after_save, { :params => params, :message => @message})
+        call_hook(:controller_messages_new_after_save, {:params => params, :message => @message})
         render_attachment_warning_if_needed(@message)
         flash[:notice] = l(:notice_successful_create)
         redirect_to board_message_path(@board, @message)
@@ -80,7 +80,7 @@ class MessagesController < ApplicationController
     @reply.save_attachments(params[:attachments])
     @topic.children << @reply
     if !@reply.new_record?
-      call_hook(:controller_messages_reply_after_save, { :params => params, :message => @reply})
+      call_hook(:controller_messages_reply_after_save, {:params => params, :message => @reply})
       render_attachment_warning_if_needed(@reply)
     end
     flash[:notice] = l(:notice_successful_update)