Please sign in to comment.
Simplify select_one method.
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.
- Loading branch information...
Showing with 1 addition and 2 deletions.