]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of WikiController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 16 Nov 2020 12:22:09 +0000 (12:22 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 16 Nov 2020 12:22:09 +0000 (12:22 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20394 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/wiki_controller.rb

index 782763713b08001acb43cb404b0098d93509cf4b..69af6f437cf29f3e5f1943b9d202a79ebeb45acf 100644 (file)
@@ -74,8 +74,8 @@ class WikiController < ApplicationController
       if @page.errors[:title].blank?
         path = project_wiki_page_path(@project, @page.title, :parent => params[:parent])
         respond_to do |format|
-          format.html { redirect_to path }
-          format.js   { render :js => "window.location = #{path.to_json}" }
+          format.html {redirect_to path}
+          format.js   {render :js => "window.location = #{path.to_json}"}
         end
       end
     end
@@ -181,7 +181,7 @@ class WikiController < ApplicationController
     if @page.save_with_content(@content)
       attachments = Attachment.attach_files(@page, params[:attachments] || (params[:wiki_page] && params[:wiki_page][:uploads]))
       render_attachment_warning_if_needed(@page)
-      call_hook(:controller_wiki_edit_after_save, { :params => params, :page => @page})
+      call_hook(:controller_wiki_edit_after_save, {:params => params, :page => @page})
 
       respond_to do |format|
         format.html do
@@ -198,8 +198,8 @@ class WikiController < ApplicationController
       end
     else
       respond_to do |format|
-        format.html { render :action => 'edit' }
-        format.api { render_validation_errors(@content) }
+        format.html {render :action => 'edit'}
+        format.api {render_validation_errors(@content)}
       end
     end
 
@@ -210,7 +210,7 @@ class WikiController < ApplicationController
         flash.now[:error] = l(:notice_locking_conflict)
         render :action => 'edit'
       end
-      format.api { render_api_head :conflict }
+      format.api {render_api_head :conflict}
     end
   end
 
@@ -291,7 +291,7 @@ class WikiController < ApplicationController
         flash[:notice] = l(:notice_successful_delete)
         redirect_to project_wiki_index_path(@project)
       end
-      format.api { render_api_ok }
+      format.api {render_api_ok}
     end
   end