Project

General

Profile

Actions

Patch #26726

closed

Use pluck(:id) instead of collect(&:id)

Added by jwjw yy over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

redmine/app/controllers/versions_controller.rb:37:        project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id]
redmine/app/controllers/versions_controller.rb:37:        project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id]
redmine/app/models/issue.rb:1383:    moved_project_ids = project.self_and_descendants.reload.collect(&:id)

could change collect to pluck


Related issues

Related to Redmine - Patch #26711: Use pluck instead of collect/mapClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF