Fix RuboCop offense Style/CollectionCompact (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@22921 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2024-07-11 09:35:32 +00:00
parent 480975a0f5
commit 47d7dd0187
4 changed files with 6 additions and 16 deletions

View File

@@ -115,7 +115,7 @@ class ProjectsController < ApplicationController
format.html do
flash[:notice] = l(:notice_successful_create)
if params[:continue]
attrs = {:parent_id => @project.parent_id}.reject {|k,v| v.nil?}
attrs = {:parent_id => @project.parent_id}.compact
redirect_to new_project_path(attrs)
else
redirect_to settings_project_path(@project)