Syntactic sugar for using a subquery and left outer join in ActiveRecord