rails/rails — pull request #11579 by kennyj (2013-07-24 14:28:10+00:00)
Title: Simplify select_one method.

tiny refactor :)

The select_all method always returns ActiveRecord::Result instance,
and the ActiveRecord::Result includes Enumerable mixin.
If #empty?, #first method returns nil. Thus we can simplify this method.