Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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