-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
I can, of course, do User.find_by(id: nil) instead, but anyone who sees this in the code will always be tempted to correct to User.find(nil) because he won't know the possible passing of nil.
Would it be possible to simply have the find method return a nil if you call it with a nil?