Use find instead of detect

`Enumerable#find` could be confused with `ActiveRecord::FinderMethods#find` consider changing to `Enumerable#detect`