From: Toshi MARUYAMA Date: Wed, 18 Nov 2020 16:15:50 +0000 (+0000) Subject: remove spaces inside {} of CustomFieldsController X-Git-Tag: 4.2.0~398 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b1787a3c7de6e106ff2328c7ba90704207d2a749;p=redmine.git remove spaces inside {} of CustomFieldsController git-svn-id: http://svn.redmine.org/redmine/trunk@20420 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/controllers/custom_fields_controller.rb b/app/controllers/custom_fields_controller.rb index 478b0dffb..893bc4819 100644 --- a/app/controllers/custom_fields_controller.rb +++ b/app/controllers/custom_fields_controller.rb @@ -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