Actions
Patch #26130
closedRefactor "multiple_values_detail" struct creation
Patch #26130:
Refactor "multiple_values_detail" struct creation
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Description
Hi,
In the IssuesHelper#details_to_strings method (source:trunk/app/helpers/issues_helper.rb@16387#L373) a new class (Struct) is created each time the method is called:
Although classes are garbage collected in recent Ruby versions, it might be better to use a constant definition outside the method, like:
Regards,
Thomas
Actions