There is not a single line of code in all of Rails that makes use of the
.find_all template API, that doesn’t look like this:
lookup.find_all(*args).first. Getting rid of the unnecessary Array handling would simplify the implementation.
Therefore I would like to propose to deprecate and remove the
LookupContext#find_all methods and replace them with
LookupContext#find/find_if_exists. Some of the classes already provide the
#find methods so that would be mostly about replacing
Would be willing to provide a patch.