You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.adoc
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1146,6 +1146,28 @@ The following methods behave differently without `all`:
1146
1146
1147
1147
So, when considering removing `all` from the receiver of these methods, it is recommended to refer to the documentation to understand how the behavior changes.
1148
1148
1149
+
=== `find_by` memoization [[find-by-memoization]]
1150
+
1151
+
Avoid memoizing `find_by` results with `||=`.
1152
+
`find_by` may return `nil`, in which case it will not be memoized as intended.
0 commit comments