mirror of
https://github.com/redmine/redmine.git
synced 2026-05-05 20:17:32 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user