ManageIQ/manageiq — pull request #1144 by jrafanie (2014-12-01 20:22:06+00:00)
Title: Use detect instead of select + first to avoid an intermediate array.

Additionally, the intent is more obvious by removing the extra block.

Other examples of more concise use of enumerable are listed here:
https://github.com/tcopeland/pippi