]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of CustomFieldsController
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Nov 2020 16:15:50 +0000 (16:15 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Nov 2020 16:15:50 +0000 (16:15 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20420 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/custom_fields_controller.rb

index 478b0dffbaa7793d58e60fbf55181cba545966c7..893bc481985e53c767a1cf89dfa64a58ad17e0f2 100644 (file)
@@ -29,7 +29,7 @@ class CustomFieldsController < ApplicationController
   def index
     respond_to do |format|
       format.html do
-        @custom_fields_by_type = CustomField.all.group_by {|f| f.class.name }
+        @custom_fields_by_type = CustomField.all.group_by {|f| f.class.name}
         @custom_fields_projects_count =
           IssueCustomField.where(is_for_all: false).joins(:projects).group(:custom_field_id).count
       end
@@ -70,12 +70,12 @@ class CustomFieldsController < ApplicationController
           flash[:notice] = l(:notice_successful_update)
           redirect_back_or_default edit_custom_field_path(@custom_field)
         end
-        format.js { head 200 }
+        format.js {head 200}
       end
     else
       respond_to do |format|
-        format.html { render :action => 'edit' }
-        format.js { head 422 }
+        format.html {render :action => 'edit'}
+        format.js {head 422}
       end
     end
   end