]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceInsideHashLiteralBraces in app/controllers/issues_c...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 26 Nov 2019 06:30:42 +0000 (06:30 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 26 Nov 2019 06:30:42 +0000 (06:30 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19317 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 3abf3b988ea6e870d325d0ab7b7c70a4ebf3f9e2..e26bb2a8837f4af6596c872457a3f6c53617e88b 100644 (file)
@@ -138,10 +138,10 @@ class IssuesController < ApplicationController
       raise ::Unauthorized
     end
 
-    call_hook(:controller_issues_new_before_save, { :params => params, :issue => @issue })
+    call_hook(:controller_issues_new_before_save, {:params => params, :issue => @issue})
     @issue.save_attachments(params[:attachments] || (params[:issue] && params[:issue][:uploads]))
     if @issue.save
-      call_hook(:controller_issues_new_after_save, { :params => params, :issue => @issue})
+      call_hook(:controller_issues_new_after_save, {:params => params, :issue => @issue})
       respond_to do |format|
         format.html {
           render_attachment_warning_if_needed(@issue)
@@ -377,7 +377,7 @@ class IssuesController < ApplicationController
       end
       journal = issue.init_journal(User.current, params[:notes])
       issue.safe_attributes = attributes
-      call_hook(:controller_issues_bulk_edit_before_save, { :params => params, :issue => issue })
+      call_hook(:controller_issues_bulk_edit_before_save, {:params => params, :issue => issue})
       if issue.save
         saved_issues << issue
       else