Open r7kamura opened 2 months ago
To avoid a common pitfall, I propose to add a new section about @model ||= Model.find_by(...).
@model ||= Model.find_by(...)
Actually, this was created based on the following cop discussion:
I wish Ruby had @foo |||= potentially_nil spikey rose memoisation just for that.
@foo |||= potentially_nil
To avoid a common pitfall, I propose to add a new section about
@model ||= Model.find_by(...)
.Actually, this was created based on the following cop discussion: