]> source.dussan.org Git - redmine.git/commitdiff
code layout clean up IssuesController#create
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:25:03 +0000 (04:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 22 Nov 2019 04:25:03 +0000 (04:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19150 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index 73637095b751d797c528ca4f4f260de77ea87658..eabd5f2e639bd3e7deeeda212099a1cb343fedad 100644 (file)
@@ -144,10 +144,16 @@ class IssuesController < ApplicationController
       respond_to do |format|
         format.html {
           render_attachment_warning_if_needed(@issue)
-          flash[:notice] = l(:notice_issue_successful_create, :id => view_context.link_to("##{@issue.id}", issue_path(@issue), :title => @issue.subject))
+          flash[:notice] =
+            l(:notice_issue_successful_create,
+              :id => view_context.link_to("##{@issue.id}", issue_path(@issue),
+                                          :title => @issue.subject))
           redirect_after_create
         }
-        format.api  { render :action => 'show', :status => :created, :location => issue_url(@issue) }
+        format.api  {
+          render :action => 'show', :status => :created,
+          :location => issue_url(@issue)
+        }
       end
       return
     else