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
Actions