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
@@ -1131,6 +1131,28 @@ The following methods behave differently without `all`:
1131
1131
1132
1132
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.
1133
1133
1134
+
=== `find_by` memoization [[find-by-memoization]]
1135
+
1136
+
Avoid memoizing `find_by` results with `||=`.
1137
+
`find_by` may return `nil`, in which case it will not be memoized as intended.
0 commit comments