Actions
Patch #36730
closedReplace Member.find_or_new with ActiveRecord's find_or_initialize_by
Description
Member.find_or_new
can be replaced with ActiveRecord's find_or_initialize_by
introduced in Rails 4.
https://api.rubyonrails.org/classes/ActiveRecord/Relation.html#method-i-find_or_initialize_by
Files
Related issues
Updated by Go MAEDA almost 3 years ago
- Related to Feature #36696: Improve performance of adding or removing members of a group added
Updated by Go MAEDA almost 3 years ago
In r21447, I already replaced some Member.find_or_new
.
Updated by Go MAEDA almost 3 years ago
- Target version set to 5.0.0
Setting the target version to 5.0.0.
Updated by Go MAEDA almost 3 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch.
Actions